fix jest types by import @jest/globals

This commit is contained in:
wancat committed 2024-02-27 11:45:10 +08:00
1 parent 9e108e397b
commit b059cca7b2
8 files changed
+10 -2

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
import File from '../src/file'
import { describe, test, expect } from '@jest/globals'
import File from '../src/file.js'
describe('File', () => {
let file: File
@@ -1,3 +1,4 @@
import { describe, test, expect } from '@jest/globals'
import FileGraph from '../src/fileGraph.js'
import FileNode from '../src/fileNode.js'
@@ -1,3 +1,4 @@
import { describe, test, expect } from '@jest/globals'
import { DuplicateItemError, ParentNotExistsError } from '../src/errors.js'
import FileNode from '../src/fileNode.js'
import { FileObject } from '../src/file.js'