Skip to content

Commit 6f53490

Browse files
committed
fix: comment saving exported archives to fs to fix tests on CI
1 parent 874f81f commit 6f53490

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/export.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ import {
2424
TRANSFORMATION_KIND_REDUCED,
2525
YAML_EXPORT_GROUP_FORMAT,
2626
} from '../src'
27-
import fs from 'fs/promises'
27+
// import fs from 'fs/promises'
2828

29-
const EXPORT_RESULTS_PATH = 'test/versions/export_results'
29+
// const EXPORT_RESULTS_PATH = 'test/versions/export_results'
3030

3131
let pkg: LocalRegistry
3232
let editor: Editor
@@ -66,15 +66,15 @@ describe('Export test', () => {
6666

6767
editor = await Editor.openProject(pkg.packageId, pkg)
6868

69-
if (!await fs.stat(EXPORT_RESULTS_PATH)) {
70-
await fs.mkdir(EXPORT_RESULTS_PATH)
71-
}
69+
// if (!await fs.stat(EXPORT_RESULTS_PATH)) {
70+
// await fs.mkdir(EXPORT_RESULTS_PATH)
71+
// }
7272
})
7373

74-
afterEach(async () => {
75-
const { packageVersion, exportFileName } = await editor.createNodeVersionPackage()
76-
await fs.writeFile(`${EXPORT_RESULTS_PATH}/${exportFileName}`, packageVersion)
77-
})
74+
// afterEach(async () => {
75+
// const { packageVersion, exportFileName } = await editor.createNodeVersionPackage()
76+
// await fs.writeFile(`${EXPORT_RESULTS_PATH}/${exportFileName}`, packageVersion)
77+
// })
7878

7979
test('should export rest document to html', async () => {
8080
const result = await editor.run({

0 commit comments

Comments
 (0)