Skip to content

Commit 41c832d

Browse files
committed
Fix native binding test logger typing
1 parent 028b5cf commit 41c832d

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

sdk/test/native-binding/cleanup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import type {ILogger} from '@truenine/logger'
12
import type {
2-
ILogger,
33
OutputCleanContext,
44
OutputCleanupDeclarations,
55
OutputCleanupPathDeclaration,

sdk/test/setup-native-binding.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import type {ILogger, OutputCleanContext, OutputCleanupDeclarations, OutputPlugin} from '../src/plugins/plugin-core'
1+
import type {ILogger} from '@truenine/logger'
2+
import type {OutputCleanContext, OutputCleanupDeclarations, OutputPlugin} from '../src/plugins/plugin-core'
23
import * as fs from 'node:fs'
34
import * as path from 'node:path'
45
import glob from 'fast-glob'
@@ -43,14 +44,16 @@ interface NativeCleanupSnapshot {
4344
}
4445

4546
function createMockLogger(): ILogger {
46-
return {
47+
const logger = {
4748
trace: () => {},
4849
debug: () => {},
4950
info: () => {},
5051
warn: () => {},
5152
error: () => {},
5253
fatal: () => {}
53-
} as ILogger
54+
} satisfies ILogger
55+
56+
return logger
5457
}
5558

5659
function createSyntheticOutputPlugin(snapshot: NativePluginCleanupSnapshot): OutputPlugin {

0 commit comments

Comments
 (0)