Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(typescript-estree): correct test names on windows for semantic-diagnostics-enabled #3060

Merged
merged 4 commits into from Feb 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -10,11 +10,13 @@ import { formatSnapshotName, isJSXFileType } from '../../tools/test-utils';
*/
const FIXTURES_DIR = path.join(__dirname, '../../../shared-fixtures/fixtures');

const testFiles = glob.sync(`${FIXTURES_DIR}/**/*.src.*`);
const testFiles = glob.sync(`**/*.src.*`, {
cwd: FIXTURES_DIR,
});

describe('Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled', () => {
testFiles.forEach(filename => {
const code = readFileSync(filename, 'utf8');
const code = readFileSync(path.join(FIXTURES_DIR, filename), 'utf8');
const fileExtension = path.extname(filename);
const config: parser.TSESTreeOptions = {
loc: true,
Expand Down