55
66import * as path from 'path' ;
77import * as vscode from 'vscode' ;
8- import * as jestLib from '@jest/globals' ;
8+ import { describe , beforeAll , afterAll , test , expect } from '@jest/globals' ;
99import testAssetWorkspace from './testAssets/testAssetWorkspace' ;
1010import * as integrationHelpers from '../integrationTests/integrationHelpers' ;
1111
@@ -21,8 +21,8 @@ function normalizeNewlines(original: string | undefined): string | undefined {
2121 return original ;
2222}
2323
24- jestLib . describe ( `Razor Formatting ${ testAssetWorkspace . description } ` , function ( ) {
25- jestLib . beforeAll ( async function ( ) {
24+ describe ( `Razor Formatting ${ testAssetWorkspace . description } ` , function ( ) {
25+ beforeAll ( async function ( ) {
2626 if ( ! integrationHelpers . isRazorWorkspace ( vscode . workspace ) ) {
2727 return ;
2828 }
@@ -36,11 +36,11 @@ jestLib.describe(`Razor Formatting ${testAssetWorkspace.description}`, function
3636 await integrationHelpers . activateCSharpExtension ( ) ;
3737 } ) ;
3838
39- jestLib . afterAll ( async ( ) => {
39+ afterAll ( async ( ) => {
4040 await testAssetWorkspace . cleanupWorkspace ( ) ;
4141 } ) ;
4242
43- jestLib . test ( 'Document formatted correctly' , async ( ) => {
43+ test ( 'Document formatted correctly' , async ( ) => {
4444 if ( ! integrationHelpers . isRazorWorkspace ( vscode . workspace ) ) {
4545 return ;
4646 }
@@ -59,7 +59,7 @@ jestLib.describe(`Razor Formatting ${testAssetWorkspace.description}`, function
5959 }
6060 ) ;
6161
62- jestLib . expect ( edits ) . toBeDefined ( ) ;
62+ expect ( edits ) . toBeDefined ( ) ;
6363
6464 console . log ( `Got ${ edits . length } edits` ) ;
6565
@@ -75,7 +75,7 @@ jestLib.describe(`Razor Formatting ${testAssetWorkspace.description}`, function
7575
7676 console . log ( `Checking document contents...` ) ;
7777
78- jestLib . expect ( contents ) . toBe (
78+ expect ( contents ) . toBe (
7979 normalizeNewlines ( `@page "/bad"
8080
8181@code {
0 commit comments