Skip to content

Commit 9c38815

Browse files
committed
build_tests/cycle: check .compiler.log too
(this should fail) Signed-off-by: Yuta Sato <[email protected]>
1 parent 3499809 commit 9c38815

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

jscomp/build_tests/cycle/input.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
//@ts-check
2+
const fs = require('fs')
3+
const path = require('path')
4+
25
var cp = require("child_process");
36
var assert = require("assert");
47

58
var output = cp.spawnSync(`rescript`, { encoding: "utf8", shell: true });
69

710
assert(/dependency cycle/.test(output.stdout));
11+
12+
var compilerLogFile = path.join(__dirname, 'lib', 'bs', '.compiler.log');
13+
var compilerLog = fs.readFileSync(compilerLogFile, 'utf-8');
14+
assert(/dependency cycle/.test(compilerLog));

0 commit comments

Comments
 (0)