-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: increase server test timeout, fix
yarn build:clean
(#9336)
In #9325, I added a few fixtures to the `@redwoodjs/api-server` package that include dist files. `yarn build:clean` deletes all dist directories in all packages (the glob is `packages/**/dist`), so `yarn rwfw project:sync` ended up deleting twenty or so files. This PR makes `yarn build:clean` a little smarter. I couldn't see a way to do it via the `rimraf` CLI, so I just made a script. This PR also increases the timeout in the server tests which were a little flakey.
- Loading branch information
Showing
4 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env node | ||
/* eslint-env node */ | ||
|
||
import { rimraf } from 'rimraf' | ||
import { $ } from 'zx' | ||
|
||
await $`yarn clean:prisma` | ||
|
||
await rimraf('packages/**/dist', { | ||
glob: { | ||
ignore: 'packages/**/{fixtures,__fixtures__}/**/dist', | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
/** @type {import('jest').Config} */ | ||
const config = { | ||
rootDir: '.', | ||
testTimeout: 5_000 * 2, | ||
} | ||
|
||
module.exports = config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters