From e89f11f8e402856eac70c746a952141c88cce3d2 Mon Sep 17 00:00:00 2001 From: Timothy Farrell Date: Thu, 26 Jul 2018 16:23:25 -0500 Subject: [PATCH] Don't create a spec runner if it exists. This makes room for webpack to build the tests and supply their own spec_runner.html file. --- bin/runTests.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/runTests.js b/bin/runTests.js index b9321e5..cb1f3f5 100755 --- a/bin/runTests.js +++ b/bin/runTests.js @@ -40,6 +40,9 @@ runTestsInChrome(); // ---------------------- function writeSpecRunner() { + if (fs.existsSync(testPath)) { + return; + } let settings = {}; try { settings = JSON.parse(fs.readFileSync(path.join(packageRoot, 'test.json'), 'utf8'));