From a83ee84a0c00f0297245e60b8e97ed3d1f8ff0a7 Mon Sep 17 00:00:00 2001 From: Fredrik Oseberg Date: Thu, 11 Feb 2021 14:01:43 +0100 Subject: [PATCH] fix: change state.e2e test import paths --- package.json | 4 ++-- src/test/e2e/api/admin/state.e2e.test.js | 4 ++-- tsconfig.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 8a0fea3568..b8ebae8238 100644 --- a/package.json +++ b/package.json @@ -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/**/*" diff --git a/src/test/e2e/api/admin/state.e2e.test.js b/src/test/e2e/api/admin/state.e2e.test.js index 86b9452c8b..7cd8dd9a4d 100644 --- a/src/test/e2e/api/admin/state.e2e.test.js +++ b/src/test/e2e/api/admin/state.e2e.test.js @@ -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); }); diff --git a/tsconfig.json b/tsconfig.json index 739fe6d682..4a506201b1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -74,7 +74,7 @@ "website", "test", "test/fixtures", - "server-dev.js", + "src/binver-dev.js", "server.js", "dist" ]