File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,10 @@ function getBoolean(value) {
14
14
}
15
15
16
16
const useCompiledTests = getBoolean ( process . env . USE_COMPILED_TESTS ) ;
17
+ const testWorkFile = getBoolean ( process . env . TEST_WORK_FILE ) ;
17
18
18
19
const avaCommonConfig = {
19
- files : [ "tests/**/!(_ )*.test.*" ] ,
20
+ files : testWorkFile ? [ "tests/**/work.test.*" ] : [ "tests/**/!(work )*.test.*"] ,
20
21
timeout : "5m" ,
21
22
} ;
22
23
Original file line number Diff line number Diff line change 51
51
"lint" : " eslint ." ,
52
52
"lint-fix" : " yarn lint --fix" ,
53
53
"test" : " nyc ava" ,
54
- "test-work" : " ava 'tests/rules/_work.test.ts' " ,
54
+ "test-work" : " TEST_WORK_FILE=1 ava " ,
55
55
"verify" : " yarn build && yarn lint && yarn build-tests && yarn test-compiled && rimraf build" ,
56
56
"preversion" : " yarn verify" ,
57
57
"version" : " auto-changelog -p && git add CHANGELOG.md" ,
File renamed without changes.
You can’t perform that action at this time.
0 commit comments