Skip to content

Commit 5685ffc

Browse files
committed
chore: make test:e2e cross platform
1 parent 63463c5 commit 5685ffc

File tree

2 files changed

+62
-3
lines changed

2 files changed

+62
-3
lines changed

Diff for: package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"test:watch": "jest --verbose --watch",
2323
"test:cov": "jest --verbose --coverage",
2424
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
25-
"test:e2e": "yarn test:docker:up && sleep 2 && env-cmd -f .env.test yarn prisma:migrate:init && env-cmd -f .env.test jest --config ./test/jest-e2e.config.ts --coverage && yarn test:docker:down",
25+
"test:e2e": "yarn test:docker:up && wait-on tcp:5431 && env-cmd -f .env.test yarn prisma:migrate:init && env-cmd -f .env.test jest --config ./test/jest-e2e.config.ts && yarn test:docker:down",
2626
"test:docker:up": "docker-compose -f docker-compose-test.yml up -d",
2727
"test:docker:down": "docker-compose -f docker-compose-test.yml down",
2828
"prisma:generate": "prisma generate",
@@ -89,6 +89,7 @@
8989
"ts-loader": "^9.2.6",
9090
"ts-node": "^10.4.0",
9191
"tsconfig-paths": "^3.12.0",
92-
"typescript": "^4.5.2"
92+
"typescript": "^4.5.2",
93+
"wait-on": "^6.0.0"
9394
}
9495
}

Diff for: yarn.lock

+59-1
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,18 @@
492492
dependencies:
493493
tslib "~2.3.0"
494494

495+
"@hapi/hoek@^9.0.0":
496+
version "9.2.1"
497+
resolved "https://registry.yarnpkg.com/@hapi/hoek/-/hoek-9.2.1.tgz#9551142a1980503752536b5050fd99f4a7f13b17"
498+
integrity sha512-gfta+H8aziZsm8pZa0vj04KO6biEiisppNgA1kbJvFrrWu9Vm7eaUEy76DIxsuTaWvti5fkJVhllWc6ZTE+Mdw==
499+
500+
"@hapi/topo@^5.0.0":
501+
version "5.1.0"
502+
resolved "https://registry.yarnpkg.com/@hapi/topo/-/topo-5.1.0.tgz#dc448e332c6c6e37a4dc02fd84ba8d44b9afb012"
503+
integrity sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==
504+
dependencies:
505+
"@hapi/hoek" "^9.0.0"
506+
495507
"@humanwhocodes/config-array@^0.6.0":
496508
version "0.6.0"
497509
resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.6.0.tgz#b5621fdb3b32309d2d16575456cbc277fa8f021a"
@@ -915,6 +927,23 @@
915927
resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570"
916928
integrity sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=
917929

930+
"@sideway/address@^4.1.0":
931+
version "4.1.2"
932+
resolved "https://registry.yarnpkg.com/@sideway/address/-/address-4.1.2.tgz#811b84333a335739d3969cfc434736268170cad1"
933+
integrity sha512-idTz8ibqWFrPU8kMirL0CoPH/A29XOzzAzpyN3zQ4kAWnzmNfFmRaoMNN6VI8ske5M73HZyhIaW4OuSFIdM4oA==
934+
dependencies:
935+
"@hapi/hoek" "^9.0.0"
936+
937+
"@sideway/formula@^3.0.0":
938+
version "3.0.0"
939+
resolved "https://registry.yarnpkg.com/@sideway/formula/-/formula-3.0.0.tgz#fe158aee32e6bd5de85044be615bc08478a0a13c"
940+
integrity sha512-vHe7wZ4NOXVfkoRb8T5otiENVlT7a3IAiw7H5M2+GO+9CDgcVUUsX1zalAztCmwyOr2RUTGJdgB+ZvSVqmdHmg==
941+
942+
"@sideway/pinpoint@^2.0.0":
943+
version "2.0.0"
944+
resolved "https://registry.yarnpkg.com/@sideway/pinpoint/-/pinpoint-2.0.0.tgz#cff8ffadc372ad29fd3f78277aeb29e632cc70df"
945+
integrity sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==
946+
918947
"@sinonjs/commons@^1.7.0":
919948
version "1.8.3"
920949
resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.8.3.tgz#3802ddd21a50a949b6721ddd72da36e67e7f1b2d"
@@ -1783,6 +1812,13 @@ [email protected]:
17831812
dependencies:
17841813
follow-redirects "^1.14.4"
17851814

1815+
axios@^0.21.1:
1816+
version "0.21.4"
1817+
resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.4.tgz#c67b90dc0568e5c1cf2b0b858c43ba28e2eda575"
1818+
integrity sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==
1819+
dependencies:
1820+
follow-redirects "^1.14.0"
1821+
17861822
babel-jest@^27.3.1:
17871823
version "27.3.1"
17881824
resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-27.3.1.tgz#0636a3404c68e07001e434ac4956d82da8a80022"
@@ -3063,7 +3099,7 @@ flatted@^3.1.0:
30633099
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.4.tgz#28d9969ea90661b5134259f312ab6aa7929ac5e2"
30643100
integrity sha512-8/sOawo8tJ4QOBX8YlQBMxL8+RLZfxMQOif9o0KUKTNTjMYElWPE0r/m5VNFxTRd0NSw8qSy8dajrwX4RYI1Hw==
30653101

3066-
follow-redirects@^1.14.4:
3102+
follow-redirects@^1.14.0, follow-redirects@^1.14.4:
30673103
version "1.14.5"
30683104
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.5.tgz#f09a5848981d3c772b5392309778523f8d85c381"
30693105
integrity sha512-wtphSXy7d4/OR+MvIFbCVBDzZ5520qV8XfPklSN5QtxuMUJZ+b0Wnst1e1lCDocfzuCkHqj8k0FpZqO+UIaKNA==
@@ -4150,6 +4186,17 @@ [email protected]:
41504186
import-local "^3.0.2"
41514187
jest-cli "^27.3.1"
41524188

4189+
joi@^17.4.0:
4190+
version "17.4.2"
4191+
resolved "https://registry.yarnpkg.com/joi/-/joi-17.4.2.tgz#02f4eb5cf88e515e614830239379dcbbe28ce7f7"
4192+
integrity sha512-Lm56PP+n0+Z2A2rfRvsfWVDXGEWjXxatPopkQ8qQ5mxCEhwHG+Ettgg5o98FFaxilOxozoa14cFhrE/hOzh/Nw==
4193+
dependencies:
4194+
"@hapi/hoek" "^9.0.0"
4195+
"@hapi/topo" "^5.0.0"
4196+
"@sideway/address" "^4.1.0"
4197+
"@sideway/formula" "^3.0.0"
4198+
"@sideway/pinpoint" "^2.0.0"
4199+
41534200
js-tokens@^4.0.0:
41544201
version "4.0.0"
41554202
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
@@ -6092,6 +6139,17 @@ w3c-xmlserializer@^2.0.0:
60926139
dependencies:
60936140
xml-name-validator "^3.0.0"
60946141

6142+
wait-on@^6.0.0:
6143+
version "6.0.0"
6144+
resolved "https://registry.yarnpkg.com/wait-on/-/wait-on-6.0.0.tgz#7e9bf8e3d7fe2daecbb7a570ac8ca41e9311c7e7"
6145+
integrity sha512-tnUJr9p5r+bEYXPUdRseolmz5XqJTTj98JgOsfBn7Oz2dxfE2g3zw1jE+Mo8lopM3j3et/Mq1yW7kKX6qw7RVw==
6146+
dependencies:
6147+
axios "^0.21.1"
6148+
joi "^17.4.0"
6149+
lodash "^4.17.21"
6150+
minimist "^1.2.5"
6151+
rxjs "^7.1.0"
6152+
60956153
walker@^1.0.7:
60966154
version "1.0.8"
60976155
resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.8.tgz#bd498db477afe573dc04185f011d3ab8a8d7653f"

0 commit comments

Comments
 (0)