Skip to content

Commit 12b72bb

Browse files
committed
Addressed PR comment - move task to taskfile
1 parent 3811631 commit 12b72bb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"test:unit": "NODE_ENV=test nyc --all --include \"src/**/*.ts\" mocha -r ts-node/register \"test/unit/**/*.spec.ts\"",
2424
"test:unit:ci": "NODE_ENV=test nyc --reporter=lcov --all --include \"src/**/*.ts\" mocha -r ts-node/register \"test/unit/**/*.spec.ts\"",
2525
"test:e2e": "SERVER_PORT=0 mocha --timeout 30000 -r ts-node/register -r dotenv/config \"test/e2e/**/*.spec.ts\"",
26-
"test:docker": "docker-compose -f docker-compose.e2e.yml up --abort-on-container-exit --exit-code-from backend",
2726
"postinstall": "env-prompt -d .env.sample && task build",
2827
"init": "mkdir dist",
2928
"prebuild": "yarn run clean && yarn run init",
@@ -86,4 +85,4 @@
8685
"resolutions": {
8786
"lodash": "4.17.19"
8887
}
89-
}
88+
}

tasksfile.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ function build(): void {
2525
}
2626

2727
function e2e(): void {
28-
sh("docker-compose run -e NODE_ENV=test --rm backend yarn run test:e2e", {async: false, nopipe: true});
28+
sh("docker-compose -f docker-compose.e2e.yml up --abort-on-container-exit --exit-code-from backend",
29+
{async: false, nopipe: true});
2930
}
3031

3132
function unit(): void {

0 commit comments

Comments
 (0)