Skip to content

Commit

Permalink
test: move test files to own folder
Browse files Browse the repository at this point in the history
  • Loading branch information
simoneb committed Nov 10, 2019
1 parent 459c1e2 commit 5ba0187
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,26 @@
"files": [
"cjs/",
"es/",
"src/index.js",
"src/",
"/index.d.ts"
],
"scripts": {
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src/index.js --out-dir cjs",
"build:es": "babel src/index.js --out-dir es",
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir cjs",
"build:es": "babel src --out-dir es",
"build": "run-p build:*",
"clean": "rimraf cjs es coverage",
"commit": "npx git-cz",
"format": "prettier --write \"src/**/*.{js,md,ts}\"",
"lint": "eslint src",
"format": "prettier --write \"{src,test}/**/*.{js,md,ts}\"",
"lint": "eslint src test",
"prepare": "npm run clean && npm run build",
"prepublishOnly": "npm run build",
"release": "standard-version",
"pretest": "cp ./src/index.test.js ./src/index.test.ts && cp ./src/index.test.ssr.js ./src/index.test.ssr.ts && cp ./index.d.ts ./src",
"pretest": "cp ./test/index.test.js ./test/index.test.ts && cp ./test/index.test.ssr.js ./test/index.test.ssr.ts",
"test": "jest --no-cache"
},
"dependencies": {
"@babel/runtime": "^7.6.3",
"lru-cache": "^5.1.1"
"@babel/runtime": "7.6.3",
"lru-cache": "5.1.1"
},
"peerDependencies": {
"react": "^16.8.0-0",
Expand Down
3 changes: 1 addition & 2 deletions src/index.test.js → test/index.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { renderHook, act } from '@testing-library/react-hooks'
import axios from 'axios'

import useAxios, { configure, resetConfigure } from './'

import useAxios, { configure, resetConfigure } from '../'
import { mockCancelToken } from './testUtils'

jest.mock('axios')
Expand Down
2 changes: 1 addition & 1 deletion src/index.test.ssr.js → test/index.test.ssr.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { renderHook } from '@testing-library/react-hooks'
import axios from 'axios'
import useAxios, { __ssrPromises } from './'

import useAxios, { __ssrPromises } from '../'
import { mockCancelToken } from './testUtils'

jest.mock('axios')
Expand Down
File renamed without changes.

0 comments on commit 5ba0187

Please sign in to comment.