Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Commit 87bcc44

Browse files
author
James Baxley
authored
Testing tools and sample project included in builds (#240)
* setup base CRA project, start work on test utils, add dependency testing * change test running in children * didn't know travis persisted cds * rebased and added subscription mocked util * fix syntax in travis file * rebased and updated to new AC * update tests to new AC * switch to use internal testing utilties * remove extra file * turn off flow for now * add a few sample projects and locally fix failing test env * fix directory name * revert back AC for type issue * chore: version bump
1 parent 091d65e commit 87bcc44

File tree

89 files changed

+10027
-645
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+10027
-645
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ before_install:
1515

1616
install:
1717
- yarn
18+
- cd examples/create-react-app && yarn && cd ../../
1819

1920
script:
2021
- npm test
2122
- coveralls < ./coverage/lcov.info || true # ignore coveralls error
2223
- npm run compile
24+
- cd examples/create-react-app && npm test && cd ../../
2325
- npm run filesize
2426
- python node_modules/travis-weigh-in/weigh_in.py ./dist/index.min.js || true # ignore size errors
2527

.vscode/launchReactNative.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// This file is automatically generated by vscode-react-native@0.2.0
2+
// Please do not modify it manually. All changes will be lost.
3+
try {
4+
var path = require("path");
5+
var Launcher = require("/Users/james.baxley/.vscode/extensions/vsmobile.vscode-react-native-0.2.0/out/debugger/launcher.js").Launcher;
6+
new Launcher(path.resolve(__dirname, "..")).launch();
7+
} catch (e) {
8+
throw new Error("Unable to launch application. Try deleting .vscode/launchReactNative.js and restarting vscode.");
9+
}

Changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ Expect active development and potentially significant breaking changes in the `0
44

55
### vNext
66

7+
### v0.5.15
8+
- Feature: Added test utilities and examples to library.
9+
710
### v0.5.14
811

912
- Bug: Fix issue with usage in TypeScript projects caused by 'compose' re-export. [PR #291](https://github.com/apollostack/react-apollo/pull/291)

examples/create-react-app/.flowconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[ignore]
2+
<PROJECT_ROOT>/node_modules/fbjs/.*
3+
4+
[options]
5+
suppress_type=$FlowIssue

examples/create-react-app/.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# dependencies
4+
node_modules
5+
6+
# testing
7+
coverage
8+
9+
# production
10+
build
11+
12+
# misc
13+
.DS_Store
14+
.env
15+
npm-debug.log

0 commit comments

Comments
 (0)