File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,14 @@ import fs from 'node:fs/promises';
3
3
import path from 'node:path' ;
4
4
import process from 'node:process' ;
5
5
6
+ /**
7
+ * Run All Tests: This script executes the lint command on all subfolders under `fixtures`, in order
8
+ * to validate the correctness of our plugin. Each fixture installs the *built* package. So this should
9
+ * only be run after a build has been done.
10
+ *
11
+ * For each directory under fixtures, the script runs `npm install` and `npm run lint`.
12
+ */
13
+
6
14
const TEST_COMMAND = 'npm run lint' ;
7
15
8
16
const getRoot = ( ) => {
@@ -32,14 +40,14 @@ const executeAllE2eTests = async () => {
32
40
try {
33
41
execSync ( TEST_COMMAND , {
34
42
cwd : testDir ,
35
- stdio : [ 'ignore' , 'ignore' , 'pipe' ] ,
43
+ stdio : 'inherit' ,
36
44
} ) ;
37
- console . log ( `✅ Test passed\n ` ) ;
45
+ console . log ( `✅ Test passed` ) ;
38
46
} catch ( error ) {
39
47
console . log ( `❌ Test failed` ) ;
40
- console . error ( `${ error } \n` ) ;
41
48
failedTests . push ( dirName ) ;
42
49
}
50
+ console . log ( `\n${ '-' . repeat ( 50 ) } \n` ) ;
43
51
}
44
52
45
53
if ( failedTests . length ) {
You can’t perform that action at this time.
0 commit comments