Skip to content

Commit

Permalink
(test): dogfood tsdx test for internal testing
Browse files Browse the repository at this point in the history
- now that --config is supported, this is fairly straightforward
  - rootDir had to be added because TSDX defaults use app root, and not
    the directory of the jest.config file
  • Loading branch information
agilgur5 committed Mar 9, 2020
1 parent 16459df commit fec415e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"build": "tsc -p tsconfig.json",
"lint": "yarn build && yarn lint:post-build",
"lint:post-build": "node dist/index.js lint src test --ignore-pattern 'test/tests/lint'",
"test": "yarn build && jest --config ./test/jest.config.json",
"test": "yarn build && yarn test:post-build",
"test:post-build": "node dist/index.js test --config ./test/jest.config.json",
"watch": "chokidar \"./package.json\" \"./src/**/*.ts\" \"node_modules\\@jaredpalmer\\rollup-plugin-preserve-shebang\\dist\\index.js\" -c \"yarn build && echo Success\"",
"start": "tsc -p tsconfig.json --watch"
},
Expand Down
1 change: 1 addition & 0 deletions test/jest.config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"testEnvironment": "node",
"rootDir": "./test",
"roots": ["<rootDir>/tests"],
"collectCoverageFrom": ["**/*.js"],
"transform": {
Expand Down

0 comments on commit fec415e

Please sign in to comment.