-
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.
fix(build): package, travis, and testing updates (#22)
* build packages * build, travis staged, lint, testing * testing, expand setupDocs
- Loading branch information
Showing
7 changed files
with
1,034 additions
and
724 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 |
---|---|---|
|
@@ -20,3 +20,4 @@ api-debug* | |
# misc | ||
.env | ||
.docs | ||
.fixtures |
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 |
---|---|---|
@@ -1,13 +1,10 @@ | ||
language: node_js | ||
|
||
node_js: | ||
- "10" | ||
cache: yarn | ||
|
||
jobs: | ||
include: | ||
- stage: test | ||
env: | ||
- NAME=yarn | ||
node_js: "10" | ||
before_script: yarn global add codecov | ||
script: yarn test | ||
after_success: codecov | ||
- stage: Test | ||
before_script: yarn global add codecov | ||
script: yarn test | ||
after_success: codecov |
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 |
---|---|---|
@@ -1,3 +1,12 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ApiDocMock should create a predictable docs output: setupDocs 1`] = ` | ||
Object { | ||
"error": "{\\"examples\\":[{\\"title\\":\\"Error-Response:\\",\\"content\\":\\"HTTP/1.1 400 OK\\\\n{\\\\n error: test\\\\n}\\",\\"type\\":\\"json\\"}]}", | ||
"success": "{\\"examples\\":[{\\"title\\":\\"Success-Response:\\",\\"content\\":\\"HTTP/1.1 200 OK\\\\n{\\\\n success: test\\\\n}\\",\\"type\\":\\"json\\"}]}", | ||
"type": "get", | ||
"url": "/hello/world/", | ||
} | ||
`; | ||
|
||
exports[`ApiDocMock should throw an error during testing: error 1`] = `[Error: Server failed to load]`; |
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
Oops, something went wrong.