coverageDirectory: 'coverage',
coverageReporters: ['html', 'lcov', 'text'],
collectCoverageFrom: ['src/**/*.ts'],
- coveragePathIgnorePatterns: [
- '/node_modules/',
- 'src/index.ts',
- 'src/entries',
- 'src/consola.ts',
- ],
+ coveragePathIgnorePatterns: ['/node_modules/', 'src/index.ts', 'src/entries'],
testMatch: ['<rootDir>/__tests__/**/*.spec.ts?(x)'],
watchPathIgnorePatterns: ['<rootDir>/node_modules'],
testEnvironment: 'node',
"browserstack-local": "^1.4.5",
"chromedriver": "^80.0.0",
"codecov": "^3.6.5",
- "consola": "^2.11.3",
"css-loader": "^3.4.2",
"dotenv": "^8.2.0",
"faked-promise": "^2.2.2",
+++ /dev/null
-// Own simplified consola version
-// Consola doesn't work on IE9
-
-type LogCommand = 'info' | 'log' | 'error' | 'warn'
-const logs: LogCommand[] = ['info', 'log', 'error', 'warn']
-
-export default {
- tag: '',
- withTag(tag: string) {
- const cs = Object.create(this)
- cs.tag = tag
- return cs
- },
-
- info(...args: any[]) {
- if (this.tag) console.info(`[${this.tag}]`, ...args)
- else console.info(...args)
- },
-
- mockTypes(spyCreator: () => any): void {
- for (const log of logs) {
- // @ts-ignore
- this[log] = spyCreator()
- }
- },
-}
ValueContainer,
} from './common'
import { computeScrollPosition, ScrollToPosition } from '../utils/scroll'
-// import consola from 'consola'
const cs = console
-// import consola from 'consola'
import {
RouterHistory,
NavigationCallback,
NavigationInformation,
} from './common'
-// const cs = console
-// const cs = consola.withTag('abstract')
-
/**
* Creates a in-memory based history. The main purporse of this history is to handle SSR. It starts in a special location that is nowhere.
* It's up to the user to replace that location with the starter location.
resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz#8b32089359308d111115d81cad3fceab888f97bc"
integrity sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==
-consola@^2.11.3:
- version "2.11.3"
- resolved "https://registry.yarnpkg.com/consola/-/consola-2.11.3.tgz#f7315836224c143ac5094b47fd4c816c2cd1560e"
- integrity sha512-aoW0YIIAmeftGR8GSpw6CGQluNdkWMWh3yEFjH/hmynTYnMtibXszii3lxCXmk8YxJtI3FAK5aTiquA5VH68Gw==
-
console-browserify@^1.1.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.2.0.tgz#67063cef57ceb6cf4993a2ab3a55840ae8c49336"