forked from vercel/next.js
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove allowlist, only use denylist, enable newly passing tests (verc…
…el#50325) ### What? * remove allowlist * add script to print enabled test cases * enable test suites that turbopack is newly passing
- Loading branch information
Showing
4 changed files
with
32 additions
and
349 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
30 changes: 30 additions & 0 deletions
30
packages/next-swc/crates/next-dev-tests/print-enabled-tests.js
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,30 @@ | ||
/// A script that prints a list of test cases that are enabled | ||
|
||
const _glob = require('glob') | ||
const { promisify } = require('util') | ||
const glob = promisify(_glob) | ||
const path = require('path') | ||
|
||
const { disabledTests } = require('./tests-manifest.js') | ||
|
||
const main = async () => { | ||
// Collect all test files | ||
const testFiles = new Set( | ||
( | ||
await glob('**/*.test.{js,ts,tsx}', { | ||
nodir: true, | ||
cwd: path.resolve(__dirname, '../../../../test'), | ||
}) | ||
).map((file) => `test/${file}`) | ||
) | ||
|
||
for (const testFile of disabledTests) { | ||
testFiles.delete(testFile) | ||
} | ||
|
||
for (const testFile of testFiles) { | ||
console.log(testFile) | ||
} | ||
} | ||
|
||
main().catch((e) => console.error(e)) |
65 changes: 0 additions & 65 deletions
65
packages/next-swc/crates/next-dev-tests/sync-tests-manifest.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.