Skip to content

Commit

Permalink
fix: correct test names on windows for semantic-diagnostics-enabled (#…
Browse files Browse the repository at this point in the history
…3060)

Co-authored-by: Brad Zacher <brad.zacher@gmail.com>
  • Loading branch information
armano2 and bradzacher committed Feb 18, 2021
1 parent e9bdd07 commit 885780d
Showing 1 changed file with 4 additions and 2 deletions.
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

0 comments on commit 885780d

Please sign in to comment.