Jelajahi Sumber

clean config

Yuki Takei 3 tahun lalu
induk
melakukan
cf3903d8a3
1 mengubah file dengan 1 tambahan dan 4 penghapusan
  1. 1 4
      apps/app/jest.config.js

+ 1 - 4
apps/app/jest.config.js

@@ -16,16 +16,15 @@ module.exports = {
   // Indicates whether each individual test should be reported during the run
   // Indicates whether each individual test should be reported during the run
   verbose: true,
   verbose: true,
 
 
+  moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
 
 
   projects: [
   projects: [
     {
     {
       displayName: 'unit',
       displayName: 'unit',
 
 
-      moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
       transform: {
       transform: {
         '^.+\\.(t|j)sx?$': '@swc/jest',
         '^.+\\.(t|j)sx?$': '@swc/jest',
       },
       },
-
       // transform ESM to CJS (includes all packages in node_modules)
       // transform ESM to CJS (includes all packages in node_modules)
       transformIgnorePatterns: [],
       transformIgnorePatterns: [],
 
 
@@ -43,7 +42,6 @@ module.exports = {
     {
     {
       displayName: 'server',
       displayName: 'server',
 
 
-      moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
       transform: {
       transform: {
         '^.+\\.(t|j)sx?$': '@swc-node/jest',
         '^.+\\.(t|j)sx?$': '@swc-node/jest',
       },
       },
@@ -65,7 +63,6 @@ module.exports = {
     {
     {
       displayName: 'server-v5',
       displayName: 'server-v5',
 
 
-      moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
       transform: {
       transform: {
         '^.+\\.(t|j)sx?$': '@swc-node/jest',
         '^.+\\.(t|j)sx?$': '@swc-node/jest',
       },
       },