diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51cbca79ec7b..e9344b128f41 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -147,9 +147,13 @@ jobs: unit_tests: name: Run Unit Tests needs: [build] - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: matrix: + exclude: + - os: windows-latest + node-version: 16 + os: [ubuntu-latest, windows-latest] # just run on the oldest and latest supported versions and assume the intermediate versions are good node-version: [16, 20] package: diff --git a/packages/rule-tester/tests/RuleTester.test.ts b/packages/rule-tester/tests/RuleTester.test.ts index 07ad0f31f8ab..ee5810926fa0 100644 --- a/packages/rule-tester/tests/RuleTester.test.ts +++ b/packages/rule-tester/tests/RuleTester.test.ts @@ -134,7 +134,9 @@ const NOOP_RULE: RuleModule<'error', []> = { }; function getTestConfigFromCall(): unknown[] { - return runRuleForItemSpy.mock.calls.map(c => c[2]); + return runRuleForItemSpy.mock.calls.map(c => { + return { ...c[2], filename: c[2].filename?.replaceAll('\\', '/') }; + }); } describe('RuleTester', () => { diff --git a/packages/typescript-estree/tests/lib/describeFilePath.test.ts b/packages/typescript-estree/tests/lib/describeFilePath.test.ts index 0a23ddf8af30..d9a9eaefd1cf 100644 --- a/packages/typescript-estree/tests/lib/describeFilePath.test.ts +++ b/packages/typescript-estree/tests/lib/describeFilePath.test.ts @@ -34,7 +34,9 @@ describe('describeFilePath', () => { 'file.ts', 'nested/file.ts', ])('filePath %s', filePath => { - expect(describeFilePath(filePath, tsconfigRootDir)).toMatchSnapshot(); + expect( + describeFilePath(filePath, tsconfigRootDir).replaceAll('\\', '/'), + ).toMatchSnapshot(); }); }, );