yohei0125 4 лет назад
Родитель
Сommit
aefa735d25
2 измененных файлов с 3 добавлено и 4 удалено
  1. 1 1
      .github/workflows/ci-app.yml
  2. 2 3
      packages/app/jest.config.js

+ 1 - 1
.github/workflows/ci-app.yml

@@ -95,7 +95,7 @@ jobs:
       - name: yarn test
         working-directory: ./packages/app
         run: |
-          yarn test:ci --selectProjects unit server
+          yarn test:ci --selectProjects unit server ; yarn test:ci --selectProjects server-v5
         env:
           MONGO_URI: mongodb://localhost:${{ job.services.mongodb.ports['27017'] }}/growi_test
 

+ 2 - 3
packages/app/jest.config.js

@@ -37,9 +37,8 @@ module.exports = {
 
       rootDir: '.',
       roots: ['<rootDir>'],
-      testMatch: ['<rootDir>/test/integration/**/*.test.ts', '<rootDir>/test/integration/**/*.test.js',
-                  '?!<rootDir>/test/integration/**/v5.*.test.ts', '?!<rootDir>/test/integration/**/v5.*.test.js'],
-
+      testMatch: ['<rootDir>/test/integration/**/*.test.ts', '<rootDir>/test/integration/**/*.test.js'],
+      testPathIgnorePatterns: ['<rootDir>/test/integration/**/v5.*.test.ts', '<rootDir>/test/integration/**/v5.*.test.js'],
       testEnvironment: 'node',
       globalSetup: '<rootDir>/test/integration/global-setup.js',
       globalTeardown: '<rootDir>/test/integration/global-teardown.js',