summaryrefslogtreecommitdiff
path: root/cli/tests/node_compat/test.ts
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2023-03-21 22:38:07 +0900
committerGitHub <noreply@github.com>2023-03-21 22:38:07 +0900
commitaa729a42b4257b4d58bfcd0270566756c9470d08 (patch)
treead9bcd33f812d753c62250094d416834999fb5a5 /cli/tests/node_compat/test.ts
parentc34e26a9d56596645ee63b19f99c09cf4aea4b37 (diff)
chore(tools): restore node compat test setup script (#18290)
Diffstat (limited to 'cli/tests/node_compat/test.ts')
-rw-r--r--cli/tests/node_compat/test.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/cli/tests/node_compat/test.ts b/cli/tests/node_compat/test.ts
index 505a20f08..ad2847f08 100644
--- a/cli/tests/node_compat/test.ts
+++ b/cli/tests/node_compat/test.ts
@@ -47,10 +47,9 @@ async function runTest(t: Deno.TestContext, path: string): Promise<void> {
) {
return;
}
- const isTodo = path.includes("TODO");
const ignore =
(Deno.build.os === "windows" && windowsIgnorePaths.has(path)) ||
- (Deno.build.os === "darwin" && darwinIgnorePaths.has(path)) || isTodo;
+ (Deno.build.os === "darwin" && darwinIgnorePaths.has(path));
await t.step({
name: `Node.js compatibility "${path}"`,
ignore,
@@ -124,8 +123,7 @@ Deno.test("Node.js compatibility", async (t) => {
});
function checkConfigTestFilesOrder(testFileLists: Array<string[]>) {
- for (let testFileList of testFileLists) {
- testFileList = testFileList.filter((name) => !name.startsWith("TODO:"));
+ for (const testFileList of testFileLists) {
const sortedTestList = JSON.parse(JSON.stringify(testFileList));
sortedTestList.sort();
if (JSON.stringify(testFileList) !== JSON.stringify(sortedTestList)) {