mirror of
https://github.com/zen-browser/surfer.git
synced 2025-07-07 17:05:33 +02:00
Merge pull request #19 from PeterCardenas/ensure-tests-dir
fix: ensure tests directory exists before checking it
This commit is contained in:
commit
f2e5f5a89e
1 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,7 @@ import { copyFile } from 'node:fs/promises'
|
|||
import { dirname, resolve } from 'node:path'
|
||||
import glob from 'tiny-glob'
|
||||
|
||||
import { appendToFileSync, mkdirp } from '../../utils'
|
||||
import { appendToFileSync, ensureDirectory, mkdirp } from '../../utils'
|
||||
import { config } from '../..'
|
||||
import { CURRENT_DIR, ENGINE_DIR, SRC_DIR, TESTS_DIR } from '../../constants'
|
||||
import { IMelonPatch } from './command'
|
||||
|
@ -104,6 +104,7 @@ export async function get(): Promise<ICopyPatch[]> {
|
|||
}
|
||||
})
|
||||
|
||||
await ensureDirectory('./tests')
|
||||
const testFiles = await glob('./tests/**/*', {
|
||||
filesOnly: true,
|
||||
cwd: '.',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue