Skip to content

Commit

Permalink
chore(build): avoid build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
josepot committed Jul 10, 2020
1 parent 258582b commit e64b496
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 27 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
"author": "Josep M Sobrepere",
"module": "dist/react-rxjs.esm.js",
"devDependencies": {
"@testing-library/react": "^10.4.4",
"@testing-library/react": "^10.4.5",
"@testing-library/react-hooks": "^3.3.0",
"@types/jest": "^26.0.4",
"@types/react": "^16.9.41",
"@types/react": "^16.9.42",
"@types/react-dom": "^16.9.8",
"bundlesize": "^0.18.0",
"codecov": "^3.7.0",
Expand Down
2 changes: 1 addition & 1 deletion test/Subscribe.test.tsx → src/Subscribe.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react"
import { render } from "@testing-library/react"
import { defer, Subject } from "rxjs"
import { share, finalize } from "rxjs/operators"
import { Subscribe } from "../src"
import { Subscribe } from "./"

const wait = (ms: number) => new Promise(res => setTimeout(res, ms))

Expand Down
2 changes: 1 addition & 1 deletion src/Subscribe.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import { useSubscribe } from "./"
import { useSubscribe } from "./useSubscribe"
import { Observable } from "rxjs"

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { connectFactoryObservable } from "../src"
import { TestErrorBoundary } from "../test/TestErrorBoundary"
import {
from,
of,
Expand All @@ -20,6 +18,8 @@ import {
screen,
render,
} from "@testing-library/react"
import { connectFactoryObservable } from "./"
import { TestErrorBoundary } from "./test-helpers/TestErrorBoundary"

const wait = (ms: number) => new Promise(res => setTimeout(res, ms))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import {
Observable,
} from "rxjs"
import { delay, scan, startWith, map, switchMap } from "rxjs/operators"
import { connectObservable, SUSPENSE } from "../src"
import { TestErrorBoundary } from "../test/TestErrorBoundary"
import { connectObservable, SUSPENSE } from "./"
import { TestErrorBoundary } from "./test-helpers/TestErrorBoundary"

const wait = (ms: number) => new Promise(res => setTimeout(res, ms))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { shareLatest } from "../../src"
import { TestScheduler } from "rxjs/testing"
import { from } from "rxjs"
import { shareLatest } from "../"

const scheduler = () =>
new TestScheduler((actual, expected) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TestScheduler } from "rxjs/testing"
import { suspend, SUSPENSE } from "../../src"
import { suspend, SUSPENSE } from "../"

const scheduler = () =>
new TestScheduler((actual, expected) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TestScheduler } from "rxjs/testing"
import { suspended, SUSPENSE } from "../../src"
import { suspended, SUSPENSE } from "../"

const scheduler = () =>
new TestScheduler((actual, expected) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TestScheduler } from "rxjs/testing"
import { switchMapSuspended, SUSPENSE } from "../../src"
import { switchMapSuspended, SUSPENSE } from "../"

const scheduler = () =>
new TestScheduler((actual, expected) => {
Expand Down
4 changes: 2 additions & 2 deletions test/subjectFactory.test.ts → src/subjectFactory.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { subjectFactory } from "../src"
import { scan } from "rxjs/operators"
import { EMPTY_VALUE } from "../src/internal/empty-value"
import { EMPTY_VALUE } from "./internal/empty-value"
import { subjectFactory } from "./"

describe("createSubjectsFactory", () => {
test("it releasess the subject when is no longer needed", () => {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/useSubscribe.test.ts → src/useSubscribe.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defer, Subject } from "rxjs"
import { share, finalize } from "rxjs/operators"
import { useSubscribe } from "../src"
import { renderHook } from "@testing-library/react-hooks"
import { useSubscribe } from "./"

const wait = (ms: number) => new Promise(res => setTimeout(res, ms))

Expand Down
10 changes: 7 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"importHelpers": true,
"declaration": true,
"sourceMap": true,
"rootDirs": ["./src", "./test"],
"rootDir": "./src",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
Expand All @@ -20,11 +20,15 @@
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"moduleResolution": "node",
"baseUrl": "./",
"baseUrl": "./src",
"paths": {
"*": ["src/*", "node_modules/*"]
},
"jsx": "react",
"esModuleInterop": true
}
},
"exclude": [
"**/*.test.ts",
"./src/test-helpers"
]
}

0 comments on commit e64b496

Please sign in to comment.