diff --git a/jest.config.base.js b/jest.config.base.js new file mode 100644 index 00000000..74a2459b --- /dev/null +++ b/jest.config.base.js @@ -0,0 +1,10 @@ +module.exports = { + testEnvironment: 'node', + transform: { + '\\.[jt]sx?$': [ + 'babel-jest', + { configFile: require.resolve('./babel.config') }, + ], + }, + watchPathIgnorePatterns: ['\\/node_modules\\/'], +} diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 00000000..8388e541 --- /dev/null +++ b/jest.config.js @@ -0,0 +1,3 @@ +module.exports = { + projects: ['packages/status-js'], +} diff --git a/packages/status-js/jest.config.js b/packages/status-js/jest.config.js new file mode 100644 index 00000000..65a4c1d5 --- /dev/null +++ b/packages/status-js/jest.config.js @@ -0,0 +1,4 @@ +module.exports = { + ...require('../../jest.config.base'), + displayName: 'core', +} diff --git a/packages/status-js/tsconfig.json b/packages/status-js/tsconfig.json index e29a253e..d8ac6efa 100644 --- a/packages/status-js/tsconfig.json +++ b/packages/status-js/tsconfig.json @@ -7,6 +7,7 @@ "baseUrl": ".", "paths": { "~/*": ["./*"] - } + }, + "rootDir": "." } } diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 00000000..5e7667f1 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,5 @@ +{ + "files": [], + "exclude": ["node_modules"], + "references": [{ "path": "packages/status-js" }] +}