Clean up the behavior tests (#5365)

* Speed up installs with pnp

* Move to a better relative path test

* Continue work on new test organization

* Move mjs test to new enhanced tests

* Move over last legacy test

* Update behavior e2e script

* Add first iteration of instructions to test readme

* Add some more bad instructions

* Split test command into multiple lines

* Use two workers (do not run in band)

* Bump install timeout

* No global pollution

* Fix PnP support via standard run mechanism

* Prevent circular serve command

* Silent yarn execs

* Fix common commands by using a shell

* Run with npx instead of Yarn

* Remove unused scripts

* Wait for localhost and fix script booting with PnP

* Don't pnp locally because links will cause module resolution to whine

* lint-staged is annoying

* Strip Yarn out of execa runs

* Set default license if none specified

* Don't impose worker limit

* Disable pnp for webpack messages

* Add missing dependency

* Disable timeout and rely on Jest

* Only use 2 jest workers

* Add missing dependency
This commit is contained in:
Joe Haddad
2018-10-10 11:05:15 -04:00
committed by GitHub
parent 04735de777
commit 5fecfee237
70 changed files with 547 additions and 584 deletions

View File

@@ -95,14 +95,9 @@ git clean -df
# Now that we have published them, run all tests as if they were released.
# ******************************************************************************
# Browser tests
CI=true ./node_modules/.bin/jest --config fixtures/browser/jest.config.js
# Smoke tests
CI=true ./node_modules/.bin/jest --config fixtures/smoke/jest.config.js
# Output tests
CI=true ./node_modules/.bin/jest --config fixtures/output/jest.config.js
# Run all tests
cd test/
CI=true ../node_modules/.bin/jest -w 2
# Cleanup
cleanup