This repository has been archived by the owner on Jan 25, 2023. It is now read-only.
-
-
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.
Test real component being rendered on page (#8)
* Test real component being rendered on page * Fix tests * Remove eslintConfig from package.json - see facebook/create-react-app#649 * Use latest version of yarn * Tidy packages - reason-react is a dependency, not dev-dependency * Need to run bsb -make-world before running tests * No need to run build before test * Run clean before test * reason-scripts is dev dependency * Test if this caches ocaml building each time * Fix tests - rescript-lang/rescript#3094 * Pin version correctly and remove linking bs-platform
- Loading branch information
Showing
6 changed files
with
424 additions
and
351 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 |
---|---|---|
@@ -1,9 +1,15 @@ | ||
language: node_js | ||
node_js: | ||
- 8 | ||
- 10 | ||
before_install: | ||
- curl -o- -L https://yarnpkg.com/install.sh | bash | ||
- export PATH="$HOME/.yarn/bin:$PATH" | ||
cache: | ||
yarn: true | ||
directories: | ||
- node_modules | ||
- $HOME/.cache | ||
script: | ||
- yarn run build | ||
- yarn clean | ||
- yarn test |
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,15 @@ | ||
open Jest; | ||
open JestDom; | ||
open ReactTestingLibrary; | ||
|
||
describe("App on default load", () => { | ||
|
||
test("shows project tagline", () => { | ||
let message = "Fantasy bets"; | ||
<App message=message /> | ||
|> render | ||
|> getByText(~matcher=`Str(message)) | ||
|> expect | ||
|> toBeInTheDocument | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.