File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
packages/vitest-plugin/src Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ describe("codSpeedPlugin", () => {
43
43
expect ( applyPlugin ) . toBe ( false ) ;
44
44
} ) ;
45
45
46
- it ( "should not apply the plugin when there is no instrumentation" , async ( ) => {
46
+ it ( "should apply the plugin when there is no instrumentation" , async ( ) => {
47
47
coreMocks . Measurement . isInstrumented . mockReturnValue ( false ) ;
48
48
49
49
const applyPlugin = applyPluginFunction (
@@ -52,9 +52,9 @@ describe("codSpeedPlugin", () => {
52
52
) ;
53
53
54
54
expect ( console . warn ) . toHaveBeenCalledWith (
55
- "[CodSpeed] bench detected but no instrumentation found, falling back to default vitest runner "
55
+ "[CodSpeed] bench detected but no instrumentation found"
56
56
) ;
57
- expect ( applyPlugin ) . toBe ( false ) ;
57
+ expect ( applyPlugin ) . toBe ( true ) ;
58
58
} ) ;
59
59
60
60
it ( "should apply the plugin when there is instrumentation" , async ( ) => {
Original file line number Diff line number Diff line change @@ -27,10 +27,7 @@ export default function codspeedPlugin(): Plugin {
27
27
return false ;
28
28
}
29
29
if ( ! Measurement . isInstrumented ( ) ) {
30
- console . warn (
31
- `[CodSpeed] bench detected but no instrumentation found, falling back to default vitest runner`
32
- ) ;
33
- return false ;
30
+ console . warn ( "[CodSpeed] bench detected but no instrumentation found" ) ;
34
31
}
35
32
return true ;
36
33
} ,
You can’t perform that action at this time.
0 commit comments