Jest to Vitest migration (#230)

* working without clean up

* clean up dependencies

* use test not dev

* add tests for kclErrToDiagnostic

* remove jest config

* remove unneeded @ts-ignore
This commit is contained in:
Kurt Hutten
2023-08-08 10:50:27 +10:00
committed by GitHub
parent ca985dd1a8
commit 7a537eea8e
10 changed files with 796 additions and 1575 deletions

View File

@ -5,6 +5,7 @@ import { lexer } from './tokeniser'
import { ProgramMemory, Path, SketchGroup } from './executor'
import { initPromise } from './rust'
import { enginelessExecutor } from '../lib/testHelpers'
import { vi } from 'vitest'
beforeAll(() => initPromise)
@ -36,7 +37,7 @@ log(5, myVar)`
const programMemoryOverride: ProgramMemory['root'] = {
log: {
type: 'userVal',
value: jest.fn(),
value: vi.fn(),
__meta: [
{
sourceRange: [0, 0],