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.
This commit is contained in:
parent
4ba38763f4
commit
e89f11f8e4
@ -40,6 +40,9 @@ runTestsInChrome();
|
|||||||
// ----------------------
|
// ----------------------
|
||||||
|
|
||||||
function writeSpecRunner() {
|
function writeSpecRunner() {
|
||||||
|
if (fs.existsSync(testPath)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
let settings = {};
|
let settings = {};
|
||||||
try {
|
try {
|
||||||
settings = JSON.parse(fs.readFileSync(path.join(packageRoot, 'test.json'), 'utf8'));
|
settings = JSON.parse(fs.readFileSync(path.join(packageRoot, 'test.json'), 'utf8'));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user