1
0
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:
Fredrik Oseberg 2021-02-11 14:01:43 +01:00 committed by Christopher Kolstad
parent 74b510e136
commit a83ee84a0c
No known key found for this signature in database
GPG Key ID: 559ACB0E3DB5538A
3 changed files with 5 additions and 5 deletions

View File

@ -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/**/*"

View File

@ -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);
});

View File

@ -74,7 +74,7 @@
"website",
"test",
"test/fixtures",
"server-dev.js",
"src/binver-dev.js",
"server.js",
"dist"
]