annotate jest.config.js @ 29:45ed53428e74

fix configs to run tests (all in one bundle though)
author drewp@bigasterisk.com
date Sun, 15 Dec 2019 21:18:42 -0800
parents 94629c39681c
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 };