add global test
This commit is contained in:
parent
5f095fe7cc
commit
fa7a6e36f0
11
test.js
11
test.js
@ -111,6 +111,17 @@ test("simple", async () => {
|
||||
expect(exitCode).toEqual(0);
|
||||
});
|
||||
|
||||
if (process.env.CI) {
|
||||
test("global", async () => {
|
||||
await execa("npm", ["i", "-g", "."]);
|
||||
const {stdout, stderr, exitCode} = await execa("updates", ["-C", "-G", githubUrl, "-f", testFile]);
|
||||
expect(stderr).toEqual("");
|
||||
expect(stdout).toInclude("prismjs");
|
||||
expect(stdout).toInclude("https://github.com/silverwind/updates");
|
||||
expect(exitCode).toEqual(0);
|
||||
});
|
||||
}
|
||||
|
||||
test("latest", makeTest("-j", {
|
||||
dependencies: {
|
||||
"gulp-sourcemaps": {
|
||||
|
Loading…
Reference in New Issue
Block a user