diff --git a/TESTING.md b/TESTING.md index 18cc99f..ec8db16 100644 --- a/TESTING.md +++ b/TESTING.md @@ -23,7 +23,7 @@ To run all tests against all browsers in headless mode, execute: ```bash npm run ci ``` -This will run the tests using Playwright’s headless browser setup across Chrome, Firefox, and WebKit (Safari-adjacent). This is ultimately what gets run in Github Actions to verify PRs. +This will run the tests using Playwright’s headless browser setup across Chrome, Firefox, and WebKit (Safari-adjacent). This is ultimately what gets run in Github Actions to verify PRs. This build will fail if there is an `it.only` left in the codebase, thanks to a custom `--fail-only` command line argument. To run all tests against Chrome with experimental `moveBefore` support added, execute: ```bash diff --git a/package.json b/package.json index 6ae5edb..a0787f3 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "test": "web-test-runner", "debug": "web-test-runner --manual --open", "test-move-before": "USE_MOVE_BEFORE=1 web-test-runner", - "ci": "web-test-runner --playwright --browsers chromium firefox webkit", + "ci": "web-test-runner --fail-only --playwright --browsers chromium firefox webkit", "amd": "(echo \"define(() => {\n\" && cat src/idiomorph.js && echo \"\nreturn Idiomorph});\") > dist/idiomorph.amd.js", "cjs": "(cat src/idiomorph.js && echo \"\nmodule.exports = Idiomorph;\") > dist/idiomorph.cjs.js", "esm": "(cat src/idiomorph.js && echo \"\nexport {Idiomorph};\") > dist/idiomorph.esm.js", diff --git a/test/core.js b/test/core.js index 60a97fe..c0e01f3 100644 --- a/test/core.js +++ b/test/core.js @@ -320,7 +320,7 @@ describe("Core morphing tests", function(){ document.body.removeChild(parent); }); - it.only('can prevent element addition w/ the beforeNodeAdded callback', function() { + it('can prevent element addition w/ the beforeNodeAdded callback', function() { let parent = make("
1
2