Skip to content

Commit 00fc7ca

Browse files
committed
ci: add scripts for test-legacy
1 parent eff7d81 commit 00fc7ca

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

circle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
command: npx eslint --version
5353
- run:
5454
name: Test ESLint 7
55-
command: npm test
55+
command: npm run test:legacy
5656

5757
test-v8:
5858
docker:
@@ -70,7 +70,7 @@ jobs:
7070
command: npx eslint --version
7171
- run:
7272
name: Test ESLint 8
73-
command: npm test
73+
command: npm run test:legacy
7474

7575
release:
7676
docker:

jest.config-legacy.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const { defaults } = require('jest-config')
2+
3+
module.exports = {
4+
testMatch: ['**/tests-legacy/**/*.[jt]s?(x)'],
5+
testPathIgnorePatterns: [...defaults.testPathIgnorePatterns, '.history'],
6+
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"semantic-release": "semantic-release",
4242
"start": "npm run test-watch",
4343
"test": "jest",
44+
"test:legacy": "jest --config jest.config-legacy.js",
4445
"test-watch": "jest --watchAll",
4546
"prepare": "husky"
4647
}

0 commit comments

Comments
 (0)