ic-mops 0.18.0 → 0.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commands/test.js +6 -1
- package/package.json +1 -1
package/commands/test.js
CHANGED
|
@@ -142,7 +142,7 @@ export async function runAll(filter = '') {
|
|
|
142
142
|
skipped += mmf.skipped;
|
|
143
143
|
|
|
144
144
|
i++ && console.log('-'.repeat(50));
|
|
145
|
-
console.log(`Running ${chalk.gray(file)} ${wasiMode ? chalk.gray('(wasi)') : ''}`);
|
|
145
|
+
console.log(`Running ${chalk.gray(path.relative(rootDir, file))} ${wasiMode ? chalk.gray('(wasi)') : ''}`);
|
|
146
146
|
mmf.flush();
|
|
147
147
|
});
|
|
148
148
|
|
|
@@ -190,6 +190,11 @@ function pipeMMF(proc, mmf) {
|
|
|
190
190
|
// change absolute file path to relative
|
|
191
191
|
// change :line:col-line:col to :line:col to work in vscode
|
|
192
192
|
let res = `${absToRel(m1)}:${m2}:${m3}`;
|
|
193
|
+
|
|
194
|
+
if (!fs.existsSync(m1)) {
|
|
195
|
+
return res;
|
|
196
|
+
}
|
|
197
|
+
|
|
193
198
|
// show failed line
|
|
194
199
|
let content = fs.readFileSync(m1);
|
|
195
200
|
let lines = content.toString().split('\n');
|