Skip to content

feat: Replace CJS require declarations with ESM imports #206

feat: Replace CJS require declarations with ESM imports

feat: Replace CJS require declarations with ESM imports #206

Triggered via pull request November 15, 2024 22:44
Status Failure
Total duration 18s
Artifacts

run-tests.yml

on: pull_request
test-coverage  /  test-coverage
10s
test-coverage / test-coverage
Fit to window
Zoom out
Zoom in

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.