Permalink
Browse files

fix(config): fix e2e moduleNameMapper (#605)

  • Loading branch information...
ithinco authored and Burak Tasci committed Dec 22, 2018
1 parent ad6c6bb commit be9b4f9917ee460b70f5ccdf8b8487ef861da842
Showing with 19 additions and 23 deletions.
  1. +19 −23 tools/test/e2e-preset.json
@@ -1,23 +1,19 @@
{
"rootDir": "../..",
"globals": {
"__TRANSFORM_HTML__": true,
"__process_env__": {},
"ts-jest": {
"tsConfigFile": "./tsconfig.spec.json"
}
},
"transform": {
"^.+\\.tsx?$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testRegex": "(/__tests__/.*|\\.(test|e2e-spec))\\.(ts|js)$",
"moduleNameMapper": {
"~(.*)$": "<rootDir>/src/client/$1",
"^e2e-config$": "<rootDir>/tools/test/nightmare.config.ts"
},
"moduleFileExtensions": [
"ts",
"js",
"html"
]
}
{
"rootDir": "../..",
"globals": {
"__TRANSFORM_HTML__": true,
"__process_env__": {},
"ts-jest": {
"tsConfigFile": "./tsconfig.spec.json"
}
},
"transform": {
"^.+\\.tsx?$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testRegex": "(/__tests__/.*|\\.(test|e2e-spec))\\.(ts|js)$",
"moduleNameMapper": {
"~(.*)$": "<rootDir>/src$1",
"^e2e-config$": "<rootDir>/tools/test/nightmare.config.ts"
},
"moduleFileExtensions": ["ts", "js", "html"]
}

0 comments on commit be9b4f9

Please sign in to comment.