feat: Replace CJS require declarations with ESM imports #206
run-tests.yml
on: pull_request
test-coverage
/
test-coverage
10s
Annotations
2 errors
src/converter/convertFile.test.ts > convertFile > turns CJS require statements into ESM imports:
src/converter/convertFile.test.ts#L41
Error: Snapshot `convertFile > turns CJS require statements into ESM imports 1` mismatched
- Expected
+ Received
import fs from "node:fs";
- import path from "path";
+ const path = require('path');
+
fs.access('.', () => {});
console.log(path.basename);
❯ src/converter/convertFile.test.ts:41:5
|
test-coverage / test-coverage
Process completed with exit code 1.
|