annotate jest.config.js @ 33:b82c05e22d9a

change to npm with a build that worked better as a local package to be shared
author drewp@bigasterisk.com
date Tue, 24 Dec 2019 20:30:27 -0800
parents 45ed53428e74
children 3d8b98e9c01d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
1 module.exports = {
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
2 transform: {
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
3 "^.+\\.tsx?$": "ts-jest"
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
4 },
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
5 testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
6 testPathIgnorePatterns: ["/lib/", "/node_modules/"],
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
7 moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
8 collectCoverage: true,
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
9 globals: {
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
10 'ts-jest': {
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
11 packageJson: 'package.json',
29
45ed53428e74 fix configs to run tests (all in one bundle though)
drewp@bigasterisk.com
parents: 17
diff changeset
12 babelConfig: true
17
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
13 }
29
45ed53428e74 fix configs to run tests (all in one bundle though)
drewp@bigasterisk.com
parents: 17
diff changeset
14 },
45ed53428e74 fix configs to run tests (all in one bundle though)
drewp@bigasterisk.com
parents: 17
diff changeset
15 resolver: require.resolve(`jest-pnp-resolver`)
17
94629c39681c trying to do ts+jest. WIP
drewp@bigasterisk.com
parents:
diff changeset
16 };