File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,9 @@ export default defineNuxtConfig({
248248 noUnusedLocals : true ,
249249 } ,
250250 } ,
251+ sharedTsConfig : {
252+ include : [ '../test/unit/shared/**/*.ts' ] ,
253+ } ,
251254 nodeTsConfig : {
252255 compilerOptions : {
253256 allowImportingTsExtensions : true ,
Original file line number Diff line number Diff line change 11import { describe , expect , it } from 'vitest'
2- import type { NpmPackage , NpmSearchResponse } from '../../../../shared/types'
2+ import type { Packument , NpmSearchResponse } from '../../../../shared/types'
33
44describe ( 'npm registry types' , ( ) => {
55 it ( 'should correctly type a package response' , ( ) => {
6- const pkg : NpmPackage = {
6+ const pkg : Packument = {
77 '_id' : 'test-package' ,
88 '_rev' : '1-abc123' ,
99 'name' : 'test-package' ,
@@ -59,6 +59,7 @@ describe('npm registry types', () => {
5959 ] ,
6060 total : 1 ,
6161 time : '2024-01-01T00:00:00.000Z' ,
62+ isStale : false ,
6263 }
6364
6465 expect ( response . total ) . toBe ( 1 )
You can’t perform that action at this time.
0 commit comments