11import { strict as assert } from 'node:assert' ;
22import { describe , it } from 'node:test' ;
3- import consola from 'consola' ;
3+ import { consola } from 'consola' ;
44import { runSetupHook } from '../../dist/integrations/integrations.js' ;
5- import { validateFinalConfig } from '../../src /config/config.js' ;
6- import type { CompleteLunariaUserConfig } from '../../src /integrations/types.js' ;
7- import { sampleValidConfig } from '../utils.js ' ;
5+ import { validateFinalConfig } from '../../dist /config/config.js' ;
6+ import type { CompleteLunariaUserConfig } from '../../dist /integrations/types.js' ;
7+ import { sampleValidConfig } from '../utils.ts ' ;
88
99describe ( 'Integration setup hook' , async ( ) => {
1010 it ( "should throw if it tries to update the config's `integrations` field" , async ( ) => {
@@ -20,6 +20,7 @@ describe('Integration setup hook', async () => {
2020 ...sampleValidConfig ,
2121 integrations : [ sampleIntegration ] ,
2222 } ,
23+ // @ts -expect-error: The consola instance has an weird type issue.
2324 consola ,
2425 ) ,
2526 {
@@ -63,6 +64,7 @@ describe('Integration setup hook', async () => {
6364 } ,
6465 integrations : [ sampleIntegration ] ,
6566 } ,
67+ // @ts -expect-error: The consola instance has an weird type issue.
6668 consola ,
6769 ) ;
6870
@@ -109,6 +111,7 @@ describe('Integration setup hook', async () => {
109111 ...sampleValidConfig ,
110112 integrations : [ sampleIntegration ] ,
111113 } ,
114+ // @ts -expect-error: The consola instance has an weird type issue.
112115 consola ,
113116 ) ;
114117
0 commit comments