Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 08 ParamNavigation/src/router.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Route, BrowserRouter as Router, Switch } from 'react-router-dom';
import { Route, HashRouter as Router, Switch } from 'react-router-dom';
import { App } from './app';
import { About, MembersPage, MemberPageContainer } from './components';

Expand Down
2 changes: 1 addition & 1 deletion 09 Redux/src/router.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Route, BrowserRouter as Router, Switch } from 'react-router-dom';
import { Route, HashRouter as Router, Switch } from 'react-router-dom';
import { App } from './app';
import { About, MembersPageContainer, MemberPageContainer } from './components';
import { Provider } from 'react-redux';
Expand Down
2 changes: 1 addition & 1 deletion 10 LoaderSpinner/src/router.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Route, BrowserRouter as Router, Switch } from 'react-router-dom';
import { Route, HashRouter as Router, Switch } from 'react-router-dom';
import { App } from './app';
import { About, MembersPageContainer, MemberPageContainer } from './components';
import { Provider } from 'react-redux';
Expand Down
13 changes: 13 additions & 0 deletions 11 TestReducer/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"presets": [
[
"env",
{
"modules": false
}
]
],
"plugins": [
"emotion"
]
}
20 changes: 20 additions & 0 deletions 11 TestReducer/config/test/jest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"rootDir": "../../",
"testRegex": "\\.spec\\.tsx?$",
"moduleFileExtensions": [
"js",
"jsx",
"json",
"ts",
"tsx"
],
"setupFiles": [
"<rootDir>/config/test/polyfills.js"
],
"testURL": "http://localhost/",
"transform": {
".tsx?": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"restoreMocks": true

}
2 changes: 2 additions & 0 deletions 11 TestReducer/config/test/polyfills.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Polyfill requestAnimationFrame required by React >=16.0.0
require('raf/polyfill');
36 changes: 0 additions & 36 deletions 11 TestReducer/karma.conf.js

This file was deleted.

Loading