Skip to content

Commit

Permalink
Improve local tests-e2e-re (#1070)
Browse files Browse the repository at this point in the history
* Fix: Support local installation of node

* Tests: Add test-e2e-re to `make test`
  • Loading branch information
EduardoRFS committed Jun 12, 2021
1 parent 03966da commit 718d7e7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Makefile
Expand Up @@ -166,6 +166,12 @@ test-unit::
test-e2e:: ./bin/esy
@./node_modules/.bin/jest test-e2e

verdaccio::
cd test-e2e-re/lib/verdaccio && npm install

test-e2e-re:: ./bin/esy verdaccio
esy test:e2e-re

test-e2e-slow:: ./bin/esy
@./node_modules/.bin/jest test-e2e-slow

Expand All @@ -174,6 +180,8 @@ test::
@$(MAKE) test-unit
@echo "Running test suite: e2e"
@$(MAKE) test-e2e
@echo "Running test suite: e2e-re"
@$(MAKE) test-e2e-re

ci::
@$(MAKE) test
Expand Down
2 changes: 1 addition & 1 deletion esy.json
Expand Up @@ -28,7 +28,7 @@
"release:platform-release": "node ./scripts/make-platform-release.js",
"test:unit": "esy b dune runtest",
"test:e2e": "npm run jest test-e2e",
"test:e2e-re": "esy b dune exec ./test-e2e-re/lib/RunTests.exe",
"test:e2e-re": "sh -c 'esy b; esy dune exec ./test-e2e-re/lib/RunTests.exe'",
"test:e2e-slow": "node test-e2e-slow/run-slow-tests.js"
},
"resolutions": {
Expand Down

0 comments on commit 718d7e7

Please sign in to comment.