We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 307217d commit a455669Copy full SHA for a455669
1 file changed
testing/test-utils/src/lib/utils/test-folder-setup.ts
@@ -1,4 +1,3 @@
1
-import { logger } from '@nx/devkit';
2
import { bold } from 'ansis';
3
import { mkdir, rm, stat } from 'node:fs/promises';
4
@@ -11,7 +10,7 @@ export async function teardownTestFolder(dirName: string) {
11
10
try {
12
const stats = await stat(dirName);
13
if (!stats.isDirectory()) {
14
- logger.warn(
+ console.warn(
15
`⚠️ You are trying to delete a file instead of a directory - ${bold(
16
dirName,
17
)}.`,
@@ -30,7 +29,7 @@ export async function teardownTestFolder(dirName: string) {
30
29
retryDelay: 100,
31
});
32
} catch {
33
34
`⚠️ Failed to delete test artefact ${bold(
35
36
)} so the folder is still in the file system!\nIt may require a deletion before running e2e tests again.`,
0 commit comments