Skip to content

Commit

Permalink
chore: fix testing of work file
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Jul 31, 2021
1 parent 1642717 commit 7a57058
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"skipFiles": [
"<node_internals>/**/*.js"
],
"env": {
"TEST_ALL_FILE": "1"
},
"sourceMaps": true,
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
Expand Down
3 changes: 2 additions & 1 deletion ava.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ function getBoolean(value) {
}

const useCompiledTests = getBoolean(process.env.USE_COMPILED_TESTS);
const testAllFile = getBoolean(process.env.TEST_ALL_FILE);

const avaCommonConfig = {
files: ["tests/**/!(_)*.test.*"],
files: testAllFile ? ["tests/**/*.test.*"] : ["tests/**/!(work)*.test.*"],
timeout: "5m",
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"lint": "eslint .",
"lint-fix": "yarn lint --fix",
"test": "nyc ava",
"test-work": "ava 'tests/rules/_work.test.ts'",
"test-work": "TEST_ALL_FILE=1 ava",
"verify": "yarn build && yarn lint && yarn build-tests && yarn test-compiled && rimraf build",
"preversion": "yarn verify",
"version": "auto-changelog -p && git add CHANGELOG.md",
Expand Down
File renamed without changes.

0 comments on commit 7a57058

Please sign in to comment.