Skip to content

Commit 8d3362e

Browse files
depfu[bot]n1ru4l
andauthored
fix: remove tests from published bundle
* Update all development Yarn dependencies (2020-07-09) * fix some typos and upgrade dependencies Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com> Co-authored-by: n1ru4l <[email protected]>
1 parent 603bf5f commit 8d3362e

File tree

4 files changed

+1618
-2180
lines changed

4 files changed

+1618
-2180
lines changed

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,26 @@
2424
"main": "dist/main/index.js",
2525
"typings": "dist/module/index.d.ts",
2626
"devDependencies": {
27-
"@testing-library/react": "10.0.4",
28-
"@types/jest": "25.2.3",
29-
"@types/react": "16.9.35",
30-
"@typescript-eslint/eslint-plugin": "3.0.0",
31-
"@typescript-eslint/parser": "3.0.0",
27+
"@testing-library/react": "10.4.8",
28+
"@types/jest": "26.0.4",
29+
"@types/react": "16.9.41",
30+
"@typescript-eslint/eslint-plugin": "3.6.0",
31+
"@typescript-eslint/parser": "3.6.0",
3232
"doctoc": "1.4.0",
33-
"eslint": "7.1.0",
33+
"eslint": "7.4.0",
3434
"eslint-config-prettier": "6.11.0",
35-
"eslint-plugin-jest": "23.13.1",
36-
"eslint-plugin-react": "7.20.0",
35+
"eslint-plugin-jest": "23.18.0",
36+
"eslint-plugin-react": "7.20.3",
3737
"husky": "4.2.5",
38-
"jest": "26.0.1",
39-
"lint-staged": "10.2.6",
38+
"jest": "26.1.0",
39+
"lint-staged": "10.2.11",
4040
"prettier": "2.0.5",
4141
"react": "16.13.1",
4242
"react-dom": "16.13.1",
4343
"rimraf": "3.0.2",
44-
"semantic-release": "17.0.7",
45-
"ts-jest": "26.0.0",
46-
"typescript": "3.9.3"
44+
"semantic-release": "17.1.1",
45+
"ts-jest": "26.1.1",
46+
"typescript": "3.9.6"
4747
},
4848
"peerDependencies": {
4949
"react": "^16.8.6"

src/use-async-effect.spec.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ it("does throw promise rejections", async (done) => {
213213
render(<TestComponent />);
214214
});
215215

216-
it("logs error about uncatched promises to the console", async (done) => {
216+
it("logs error about uncaught promises to the console", async (done) => {
217217
const TestComponent: React.FC = () => {
218218
useAsyncEffect(function* () {
219219
yield Promise.reject(new Error("Something went wrong."));
@@ -229,7 +229,7 @@ it("logs error about uncatched promises to the console", async (done) => {
229229
done();
230230
});
231231

232-
it("onCancel is resetted after each yield", async (done) => {
232+
it("onCancel is reset after each yield", async (done) => {
233233
const callable = jest.fn();
234234
const TestComponent: React.FC = () => {
235235
useAsyncEffect(function* (onCancel) {
@@ -326,7 +326,7 @@ it("calls a cleanup function returned by the generator when unmounting", async (
326326
done();
327327
});
328328

329-
it("calls a clenup function returned by the generator when dependencies change", async (done) => {
329+
it("calls a cleanup function returned by the generator when dependencies change", async (done) => {
330330
const callable = jest.fn();
331331

332332
let setState: (i: number) => void = () => 1;
@@ -391,7 +391,7 @@ it("calls latest generator reference upon dependency change", async (done) => {
391391
done();
392392
});
393393

394-
it("interfers the correct type with the typing helper", async (done) => {
394+
it("infers the correct type with the typing helper", async (done) => {
395395
const TestComponent: React.FC = () => {
396396
useAsyncEffect(function* (setErrorHandler, cast) {
397397
const a = yield* cast(

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
"skipLibCheck": true,
77
"downlevelIteration": true,
88
"lib": ["ESNext", "DOM"]
9-
}
9+
},
10+
"exclude": ["**/*.spec.tsx", "**/*.spec.ts"]
1011
}

0 commit comments

Comments
 (0)