11import dedent from 'dedent' ;
22import ts from 'typescript' ;
3- import { describe , expect , it } from 'vitest' ;
3+ import { describe , expect , test } from 'vitest' ;
44import { formatDiagnostics } from './formatter' ;
55
66describe ( 'formatDiagnostics' , ( ) => {
@@ -38,7 +38,7 @@ describe('formatDiagnostics', () => {
3838 } ,
3939 ] ;
4040
41- it ( 'formats diagnostics with color and context when pretty is true' , ( ) => {
41+ test ( 'formats diagnostics with color and context when pretty is true' , ( ) => {
4242 const result = formatDiagnostics ( diagnostics , host , true ) ;
4343 expect ( result ) . toMatchInlineSnapshot ( `
4444 "[96mtest.module.css[0m:[93m1[0m:[93m2[0m - [91merror[0m[90m: [0m\`a_1\` is not allowed
@@ -55,7 +55,7 @@ describe('formatDiagnostics', () => {
5555 ` ) ;
5656 } ) ;
5757
58- it ( 'formats diagnostics without color and context when pretty is false' , ( ) => {
58+ test ( 'formats diagnostics without color and context when pretty is false' , ( ) => {
5959 const result = formatDiagnostics ( diagnostics , host , false ) ;
6060 expect ( result ) . toMatchInlineSnapshot ( `
6161 "test.module.css(1,2): error: \`a_1\` is not allowed
0 commit comments