This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
works-on-my-machine/script/test-suite
Marc Cataford ec2e46e04d
build: run tests using actual build (#23)
* build: run tests using actual build

* build: build script that includes hashbang prepending

* ci: missing /bin/zsh
2023-04-15 01:28:59 -04:00

23 lines
419 B
Bash

#!/usr/bin/bash
#
# Tests are executed using a built version of the runner.
#
# This will first build the package, install it in a temporary
# environment and run the test suite with it.
#
yarn pack --out integration-build.tgz
mkdir .tests
echo "{}" > .tests/package.json
touch .tests/yarn.lock
(
cd .tests
yarn add ../integration-build.tgz ts-node
yarn womm ../tests --ts --workers=2
)
rm -rf .tests