Test file must end with .test.js

master
Frédéric Matte 2022-12-05 17:08:02 -05:00
parent 32ac96adc5
commit 25a29db909
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ const suite = async (folder = '.') => {
for await (const file of walkDir(folder)) { for await (const file of walkDir(folder)) {
if (file.includes('node_modules')) continue if (file.includes('node_modules')) continue
if (file.startsWith('.git')) continue if (file.startsWith('.git')) continue
if (!file.endsWith('test.js')) continue if (!file.endsWith('.test.js')) continue
const module = join(absolutePath, file) const module = join(absolutePath, file)
const { test } = await import(module) const { test } = await import(module)