Commit 6b8f1a1e authored by Lukas Eipert's avatar Lukas Eipert

remove `instanceof Array` test

parent 7f2244ee
......@@ -71,13 +71,12 @@ beforeEach(() => {
const axiosDefaultAdapter = getDefaultAdapter();
let testFiles = process.env.TEST_FILES;
if (testFiles instanceof Array && testFiles.length > 0) {
console.log(`Running only tests: ${testFiles}`);
let testFiles = process.env.TEST_FILES || [];
if (testFiles.length > 0) {
testFiles = testFiles.map(path => path.replace(/^spec\/javascripts\//, '').replace(/\.js$/, ''));
console.log(`Running only tests matching: ${testFiles}`);
} else {
console.log('Running all tests');
testFiles = [];
}
// render all of our tests
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment