Skip to content

Commit 119cc92

Browse files
committed
Fix core macOS test bootstrap order
1 parent 5a2996a commit 119cc92

2 files changed

Lines changed: 18 additions & 5 deletions

File tree

test/index.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from 'node:assert/strict';
22
import { describe, it } from 'node:test';
33
import * as three from 'three';
4-
import {
4+
import inited, {
55
Brush,
66
BrowserDocument,
77
BrowserWindow,
@@ -14,11 +14,10 @@ import {
1414
Screen,
1515
Surface,
1616
Tris,
17-
} from '../ts/index.ts';
18-
import inited from './init.ts';
17+
} from './init.ts';
1918

2019
type TClassParams = Readonly<{
21-
screen: Screen;
20+
screen: InstanceType<typeof Screen>;
2221
}>;
2322

2423
// oxlint-disable-next-line typescript/no-explicit-any

test/init.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,21 @@ const { doc } = inited;
7979
const window = doc;
8080
const document = doc;
8181

82-
export const { Image } = core;
82+
export const {
83+
Brush,
84+
BrowserDocument,
85+
BrowserWindow,
86+
Cloud,
87+
Drawable,
88+
gl,
89+
Image,
90+
Lines,
91+
Points,
92+
Rect,
93+
Screen,
94+
Surface,
95+
Tris,
96+
} = core;
8397

8498
export { doc, window, document };
8599

0 commit comments

Comments
 (0)