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 30, 2021
1 parent e1e3e9e commit 59c20d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ava.config.js
Expand Up @@ -14,9 +14,10 @@ function getBoolean(value) {
}

const useCompiledTests = getBoolean(process.env.USE_COMPILED_TESTS);
const testWorkFile = getBoolean(process.env.TEST_WORK_FILE);

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

Expand Down
2 changes: 1 addition & 1 deletion package.json
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_WORK_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 59c20d3

Please sign in to comment.