Trevor Scheer
4f24edc1f6
Migrate apollo-graphql package to apollo-tooling repo ( #2316 )
...
The purpose of this PR is to remove the `apollo-graphql` package from this repository, to be added to `apollo-tooling` instead.
https://github.com/apollographql/apollo-tooling
Ref: https://github.com/apollographql/apollo-tooling/pull/1018
2019-02-14 12:41:58 +02:00
Jesse Rosenberger
d4a5cad2d1
Also update jest.config.base.js
RegExp with new apollo-graphql
package.
2019-02-01 20:40:28 +02:00
Martijn Walraven
a28122842e
Add comments to moduleNameMapper
option in Jest config
2018-10-12 13:37:33 +02:00
Martijn Walraven
68b2c691f8
Move test tsconfig.json
files under __tests__
to support editors
...
The TypeScript language server looks for `tsconfig.json` and doesn't take project references into account when resolving the config for a file.
See https://github.com/Microsoft/TypeScript/issues/27372 .
2018-10-11 23:10:45 +02:00
Martijn Walraven
d0590ac3ad
Add missing type dependencies for tests
2018-10-11 23:10:45 +02:00
Martijn Walraven
0491af858d
Avoid use of object spread in Jest config files to support Node 6
2018-10-11 23:10:09 +02:00
Martijn Walraven
6c2f8d7583
Configure Jest to import local modules from src
instead of dist
...
The Jest `moduleNameMapper` option allows us to match module names and transform the path that will be used to import them. If the resulting module is written in TypeScript, it will then be compiled by `ts-jest`, similar to relative imports within the package under test.
2018-10-11 20:23:16 +02:00
Martijn Walraven
6796ff310b
Add paths config for shared __mocks__ to avoid relative imports
2018-10-11 08:20:49 +02:00
Martijn Walraven
f5d5981ffc
Add TypeScript and Jest projects for tests in individual packages
2018-10-11 04:33:23 +02:00