Skip to content

Commit

Permalink
chore: env in config file
Browse files Browse the repository at this point in the history
  • Loading branch information
XVincentX committed Apr 16, 2019
1 parent a33b860 commit 11d1610
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const moduleNameMapper = {

const transformIgnorePatterns = ['node_modules', 'lib'];
const moduleFileExtensions = ['js', 'json', 'jsx', 'node', 'jsx', 'ts', 'tsx'];
const testEnvironment = 'node';
const transform = {
'^.+\\.(ts|tsx)$': 'ts-jest',
};
Expand All @@ -24,6 +25,7 @@ module.exports = {
moduleFileExtensions,
transformIgnorePatterns,
moduleNameMapper,
testEnvironment,
globals: {
'ts-jest': {
tsConfig: '<rootDir>/packages/http-server/tsconfig.json',
Expand All @@ -37,6 +39,7 @@ module.exports = {
moduleFileExtensions,
transformIgnorePatterns,
moduleNameMapper,
testEnvironment,
globals: {
'ts-jest': {
tsConfig: '<rootDir>/packages/http/tsconfig.json',
Expand All @@ -50,6 +53,7 @@ module.exports = {
moduleFileExtensions,
transformIgnorePatterns,
moduleNameMapper,
testEnvironment,
globals: {
'ts-jest': {
tsConfig: '<rootDir>/packages/core/tsconfig.json',
Expand All @@ -63,6 +67,7 @@ module.exports = {
moduleFileExtensions,
transformIgnorePatterns,
moduleNameMapper,
testEnvironment,
globals: {
'ts-jest': {
tsConfig: '<rootDir>/packages/cli/tsconfig.json',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"build.watch": "tsc --build --watch ./packages/tsconfig.build.json",
"posttest": "yarn lint",
"test": "yarn test.ci",
"test.ci": "jest --env=node --maxWorkers=2",
"test.ci": "jest --maxWorkers=2",
"test.coverage": "yarn test --coverage",
"test.watch": "yarn test --watchAll",
"test.update": "yarn test.fast --updateSnapshot",
Expand Down

0 comments on commit 11d1610

Please sign in to comment.