Skip to content

Commit b14926f

Browse files
committed
fix: ensure CLI is available for integration tests
- Change Jest config: name -> displayName to fix warning - Point playground cs script directly to parent binary instead of relying on yalc-linked version - This makes tests work regardless of yalc install status
1 parent 923fbb3 commit b14926f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

playground/jest.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
module.exports = {
2-
name: 'Integration test',
2+
displayName: 'Integration test',
33
testMatch: ['**/__tests__/?(*.)+(spec|test).js'],
44
transform: {},
55
coverageDirectory: '../coverage/',
66
collectCoverage: true,
7+
testEnvironment: 'node',
78
};

playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"start": "strapi start",
99
"build": "strapi build",
1010
"strapi": "strapi",
11-
"cs": "config-sync"
11+
"cs": "node ../bin/config-sync"
1212
},
1313
"devDependencies": {
1414
"@types/node": "^24.0.7",

0 commit comments

Comments
 (0)