You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I write my transform plugin with ts locally, and import the TransformContext and TransformCallback type from karma-typescript:
importtype{TransformContext,TransformCallback}from'karma-typescript'exportdefaultasyncfunction(context: TransformContext,cb: TransformCallback){if(/\.(less|css)$/.test(context.filename)){// do somethingcb(null,true)}else{cb(null,false)}}
When I run my karma.conf.ts with ts-node, an error occurred:
I write my
transform
plugin with ts locally, and import theTransformContext
andTransformCallback
type fromkarma-typescript
:When I run my
karma.conf.ts
withts-node
, an error occurred:The text was updated successfully, but these errors were encountered: