-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
38 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import * as fs from "fs"; | ||
import { | ||
runUnitTestExpectFailure, | ||
runE2ETest, | ||
} from "../../test-util/test-util"; | ||
|
||
test("successful tar.gz build", async () => { | ||
const output = await runE2ETest("build test_assets/out/"); | ||
expect(output).toContain("Build and packaging completed!"); | ||
const existsFile = fs.existsSync("test_assets/out/nomo.tar.gz"); | ||
expect(existsFile).toBe(true); | ||
fs.unlinkSync("test_assets/out/nomo.tar.gz"); | ||
}); | ||
|
||
test("missing required file", async () => { | ||
const output = await runUnitTestExpectFailure( | ||
"build test_assets/out_incomplete/out" | ||
); | ||
expect(output).toMatch( | ||
/Error: The 'out' directory is missing the following required files: .* Use nomo-webon-cli init if you do not have a nomo_manifest.json yet.\n/ | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters