Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions napi/oxlint2/test/compile-visitor.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
// TODO(camc314): we need to generate `.d.ts` file for this module.
// @ts-expect-error
import types from '../../parser/generated/lazy/types.js';
import { NODE_TYPE_IDS_MAP } from '../../parser/generated/lazy/types.js';
import {
addVisitorToCompiled,
compiledVisitor,
Expand All @@ -11,8 +11,8 @@ import {

import type { EnterExit, VisitFn } from '../src-js/types.ts';

const PROGRAM_TYPE_ID = types.NODE_TYPE_IDS_MAP.get('Program'),
EMPTY_STMT_TYPE_ID = types.NODE_TYPE_IDS_MAP.get('EmptyStatement');
const PROGRAM_TYPE_ID = NODE_TYPE_IDS_MAP.get('Program'),
EMPTY_STMT_TYPE_ID = NODE_TYPE_IDS_MAP.get('EmptyStatement');

describe('compile visitor', () => {
beforeEach(initCompiledVisitor);
Expand Down
Loading