Skip to content

Commit

Permalink
fix: ut-test
Browse files Browse the repository at this point in the history
  • Loading branch information
caohuilin committed Oct 18, 2024
1 parent 88f8392 commit f91913c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/runtime/plugin-runtime/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const sharedConfig = require('@scripts/jest-config');
/** @type {import('@jest/types').Config.InitialOptions} */
module.exports = {
...sharedConfig,
testEnvironment: 'node',
setupFiles: ['../../../tests/setEnvVars.js'],
rootDir: __dirname,
moduleNameMapper: {
Expand Down
4 changes: 4 additions & 0 deletions tests/jest-ut.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ module.exports = {
'<rootDir>/packages/(server|solutions)/',
'<rootDir>/packages/(server|solutions)/',
'<rootDir>/packages/generator/',
'<rootDir>/packages/cli/plugin-swc/',
'<rootDir>/packages/runtime/plugin-runtime/',
],
rootDir: path.join(__dirname, '../'),
testEnvironment: '<rootDir>/tests/jest.env.js',
Expand Down Expand Up @@ -114,6 +116,8 @@ module.exports = {
'<rootDir>/packages/solutions/**/src/**/*.test.[jt]s?(x)',
'<rootDir>/packages/server/**/tests/**/*.test.[jt]s?(x)',
'<rootDir>/packages/solutions/**/tests/**/*.test.[jt]s?(x)',
'<rootDir>/packages/cli/plugin-swc/',
'<rootDir>/packages/runtime/plugin-runtime/',
],
},
{
Expand Down

0 comments on commit f91913c

Please sign in to comment.