-
-
Notifications
You must be signed in to change notification settings - Fork 212
Development
Guan edited this page Jan 24, 2021
·
1 revision
Run the setup script to set up the environment.
yarn setupRun test for a headless test, or test:debug for a headful test.
yarn test
yarn test:debugNote there's a browser test suite that requires a production bundle, so you'll need to build the library before running tests.
yarn buildYou don't have to build it every time, just do it when you think necessary.
There's a playground with hot reload enabled, it's useful for debugging.
yarn playgroundThen make changes to the tests/playground/index.ts and check the result.
Modifications of this file should not be committed to git. You can run this command to tell git not to track this file:
git update-index --skip-worktree test/playground/index.ts