mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-15 17:50:48 +02:00
fix: change state.e2e test import paths
This commit is contained in:
parent
74b510e136
commit
a83ee84a0c
@ -35,7 +35,7 @@
|
||||
"lint": "eslint .",
|
||||
"build:watch": "tsc -w",
|
||||
"build:ts": "tsc",
|
||||
"test": "NODE_ENV=test PORT=4243 ava",
|
||||
"test": "yarn build:ts && NODE_ENV=test PORT=4243 ava",
|
||||
"test:docker": "./scripts/docker-postgres.sh",
|
||||
"test:watch": "yarn test --watch",
|
||||
"test:coverage": "nyc --reporter=lcov yarn test",
|
||||
@ -50,7 +50,7 @@
|
||||
},
|
||||
"ava": {
|
||||
"files": [
|
||||
"./dist/test/**/*.test.js",
|
||||
"./dist/**/*.test.js",
|
||||
"!src/**/*",
|
||||
"!**/helpers/**/*",
|
||||
"!**/fixtures/**/*"
|
||||
|
@ -81,7 +81,7 @@ test.serial('imports strategies and features from json file', async t => {
|
||||
const request = await setupApp(stores);
|
||||
return request
|
||||
.post('/api/admin/state/import')
|
||||
.attach('file', 'test/examples/import.json')
|
||||
.attach('file', 'src/test/examples/import.json')
|
||||
.expect(202);
|
||||
});
|
||||
|
||||
@ -90,6 +90,6 @@ test.serial('imports strategies and features from yaml file', async t => {
|
||||
const request = await setupApp(stores);
|
||||
return request
|
||||
.post('/api/admin/state/import')
|
||||
.attach('file', 'test/examples/import.yml')
|
||||
.attach('file', 'src/test/examples/import.yml')
|
||||
.expect(202);
|
||||
});
|
||||
|
@ -74,7 +74,7 @@
|
||||
"website",
|
||||
"test",
|
||||
"test/fixtures",
|
||||
"server-dev.js",
|
||||
"src/binver-dev.js",
|
||||
"server.js",
|
||||
"dist"
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user