mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-26 03:35:19 +00:00
* Split up integration tests. * Remove unused bits from xhr-limit integration test. * Use a shared base config for local and remote webdriver tests. * Remove npmignores These are no longer needed because we publish from packages/* and not the root. * Keep xhr-limit disabled because it still does not work * Extract integration test helper functions to utils.js. * Stash React integration test stub * Fix build steps for CRA integration test. * Add Webpack CSS test and CRA mount/unmount test * Add DashboardModal integration tests. * Add suites to wdio so we can run single tests. * Fix create-react-app CI build.
24 lines
653 B
Bash
Executable file
24 lines
653 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -o pipefail
|
|
set -o errexit
|
|
set -o nounset
|
|
set -o xtrace
|
|
|
|
# Set magic variables for current file & dir
|
|
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
__file="${__dir}/$(basename "${BASH_SOURCE[0]}")"
|
|
__base="$(basename ${__file} .sh)"
|
|
__root="$(cd "$(dirname "${__dir}")" && pwd)"
|
|
|
|
echo "Preparing for end to end test: copying static HTML and CSS, building JS"
|
|
rm -rf "${__root}/test/endtoend/node_modules"
|
|
|
|
npm run build
|
|
|
|
# Allow integration tests to resolve @uppy packages
|
|
ln -s "${__root}/packages" "${__root}/test/endtoend/node_modules"
|
|
|
|
bash "${__dir}/endtoend-build-tests"
|
|
|
|
rm "${__root}/test/endtoend/node_modules"
|