This repository has been archived by the owner on Sep 7, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some end to end testing to cover our ass and avoid losing pages
Ref #1114 This commit show a bug btw, related to pagination.
- Loading branch information
Showing
3 changed files
with
37 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`should build docs correctly 1`] = ` | ||
Array [ | ||
"404.html", | ||
"docs/getting-started/index.html", | ||
"index.html", | ||
"news/2017/06/introducing-1.0.0-alpha/index.html", | ||
"news/after/:after/index.html", | ||
"news/index.html", | ||
"showcase/index.html", | ||
"showcase/tag/blog/index.html", | ||
"showcase/tag/business/index.html", | ||
"showcase/tag/community/index.html", | ||
"showcase/tag/docs/index.html", | ||
"showcase/tag/event/index.html", | ||
"showcase/tag/learning/index.html", | ||
"showcase/tag/multi-languages/index.html", | ||
"showcase/tag/open-source/index.html", | ||
"showcase/tag/service/index.html", | ||
] | ||
`; |
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,12 @@ | ||
import globby from "globby"; | ||
|
||
it("should build docs correctly", () => { | ||
const testFolder = __dirname + "/../dist"; | ||
const files = globby.sync("**/*", { | ||
cwd: testFolder, | ||
nodir: true | ||
}); | ||
|
||
// should have html files | ||
expect(files.filter(file => file.endsWith(".html"))).toMatchSnapshot(); | ||
}); |
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