Now copying fixtures to test-tmp dir to keep relative requests with __dirname for test fixtures

This commit is contained in:
sanex3339
2017-01-07 17:23:44 +03:00
parent 9cd7bdd21f
commit 76846c807e
2 changed files with 83 additions and 2 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
#!/bin/bash
$(npm bin)/tsc -p tsconfig-test.json &&
$(npm bin)/babel test-tmp --out-dir test-tmp --source-maps inline --presets es2015
$(npm bin)/babel test-tmp --out-dir test-tmp --source-maps inline --presets es2015 &&
rsync -a --prune-empty-dirs --include '*/' --include '*.js' --exclude '*' test/ test-tmp/test/