diff --git a/packages/test/index.js b/packages/test/index.js index cd29534..d82507f 100644 --- a/packages/test/index.js +++ b/packages/test/index.js @@ -1,12 +1,12 @@ import { readFileSync, writeFileSync, -} from 'fs'; -import {fileURLToPath} from 'url'; +} from 'node:fs'; +import {fileURLToPath} from 'node:url'; import { dirname, join, -} from 'path'; +} from 'node:path'; import {extend} from 'supertape'; import {print} from 'putout'; import tryCatch from 'try-catch'; diff --git a/rules/goldstein/lib/convert-t-compile-to-compile/index.spec.js b/rules/goldstein/lib/convert-t-compile-to-compile/index.spec.js index 28de380..ddaae78 100644 --- a/rules/goldstein/lib/convert-t-compile-to-compile/index.spec.js +++ b/rules/goldstein/lib/convert-t-compile-to-compile/index.spec.js @@ -10,12 +10,15 @@ const test = createTest(import.meta.url, { test('rules: convert-t-compile-to-compile: report', (t) => { t.report('convert-t-compile-to-compile', `Use 'compile()' instead of 't.compile()'`); + t.end(); }); test('rules: convert-t-compile-to-compile: transform', (t) => { t.transform('convert-t-compile-to-compile'); + t.end(); }); test('rules: convert-t-compile-to-compile: no report: done', (t) => { t.noReport('done'); + t.end(); }); diff --git a/rules/goldstein/lib/convert-t-raise-to-raise/index.spec.js b/rules/goldstein/lib/convert-t-raise-to-raise/index.spec.js index 1efd636..60ea219 100644 --- a/rules/goldstein/lib/convert-t-raise-to-raise/index.spec.js +++ b/rules/goldstein/lib/convert-t-raise-to-raise/index.spec.js @@ -10,8 +10,10 @@ const test = createTest(import.meta.url, { test('rules: convert-t-raise-to-raise: report', (t) => { t.report('convert-t-raise-to-raise', `Use 'raise()' instead of 't.raise()'`); + t.end(); }); test('rules: convert-t-raise-to-raise: transform', (t) => { t.transform('convert-t-raise-to-raise'); + t.end(); }); diff --git a/rules/goldstein/test/goldstein.js b/rules/goldstein/test/goldstein.js index 0c00aa7..ecc1212 100644 --- a/rules/goldstein/test/goldstein.js +++ b/rules/goldstein/test/goldstein.js @@ -10,8 +10,10 @@ const test = createTest(import.meta.url, { test('plugin-goldstein: transform: convert-t-compile-to-compile', (t) => { t.transform('convert-t-compile-to-compile'); + t.end(); }); test('plugin-goldstein: transform: convert-t-raise-to-raise', (t) => { t.transform('convert-t-raise-to-raise'); + t.end(); });