Commit 8cd9ff2a by Wee

chore: stop ignore *.js

parent 7f01c87d
...@@ -2,6 +2,5 @@ es ...@@ -2,6 +2,5 @@ es
dist dist
node_modules node_modules
umd umd
/*.js
!rollup.config.js !rollup.config.js
/coverage /coverage
module.exports = {
printWidth: 120,
tabWidth: 2,
semi: false,
singleQuote: true
// useTabs: false,
// trailingComma: 'none'
// bracketSpacing: true,
// jsxBracketSameLine: false,
// arrowParens: 'avoid',
// rangeStart: 0,
// rangeEnd: Infinity,
// proseWrap: "preserve"
}
<p align="center"> <p align="center">
<h1 align="center">Tinar</h1> <h1 align="center">react-live-route</h1>
<p align="center"> <p align="center">
An enhanced version of **react-router-v4 Route** Component that keeps route component alive on unmatched path and restore it completely on match path. An enhanced version of react-router-v4 Route Component that keeps route component alive on unmatched path and restore it completely on match path.
<p> <p>
<p align="center"> <p align="center">
<i> <i>
......
import React from 'react'
import { BrowserRouter } from 'react-router-dom'
// Just render plain div with its children
const MockBrowserRouter = ({ children }) => <div>{children}</div>
export default MockBrowserRouter
module.exports = {
roots: ['<rootDir>'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.[jt]sx?$',
transform: {
'^.+\\.tsx?$': 'ts-jest'
},
globals: {
'ts-jest': {
diagnostics: false
}
},
moduleNameMapper: {
'react-live-route': '<rootDir>/src'
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment