File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
testing/test-utils/src/lib/utils Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1- import { logger } from '@nx/devkit' ;
21import { bold } from 'ansis' ;
32import { mkdir , rm , stat } from 'node:fs/promises' ;
43
@@ -11,7 +10,7 @@ export async function teardownTestFolder(dirName: string) {
1110 try {
1211 const stats = await stat ( dirName ) ;
1312 if ( ! stats . isDirectory ( ) ) {
14- logger . warn (
13+ console . warn (
1514 `⚠️ You are trying to delete a file instead of a directory - ${ bold (
1615 dirName ,
1716 ) } .`,
@@ -30,7 +29,7 @@ export async function teardownTestFolder(dirName: string) {
3029 retryDelay : 100 ,
3130 } ) ;
3231 } catch {
33- logger . warn (
32+ console . warn (
3433 `⚠️ Failed to delete test artefact ${ bold (
3534 dirName ,
3635 ) } so the folder is still in the file system!\nIt may require a deletion before running e2e tests again.`,
You can’t perform that action at this time.
0 commit comments