Skip to content

Commit

Permalink
move mocha tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aholachek committed Jun 11, 2020
1 parent 3bdf3b7 commit 77d3096
Show file tree
Hide file tree
Showing 10 changed files with 6,556 additions and 4,125 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"beta-release": "lerna publish --dist-tag beta"
},
"devDependencies": {
"lerna": "^3.15.0"
"lerna": "^3.22.1"
}
}
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions packages/flip-toolkit/mocha/tests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import '../src/flip/animateFlippedElements/__tests__/applyStyles.domtest.js'
import '../src/flip/animateFlippedElements/__tests__/animateFlippedElements.domtest.js'
import '../src/flip/animateUnflippedElements/animateUnflippedElements.domtest.js'
import '../src/flip/getFlippedElementPositions/getFlippedElementPositions.domtest.js'
mocha.run() // eslint-disable-line
4 changes: 3 additions & 1 deletion packages/flip-toolkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"build": "microbundle --name=FlipToolkit",
"lint": "echo \"noop\"",
"test": "echo \"noop\"",
"test:dom": "parcel mocha/testrunner.html",
"start": "parcel test/index.html",
"prepublish": "npm run build"
},
Expand All @@ -34,6 +35,7 @@
},
"devDependencies": {
"microbundle": "^0.11.0",
"parcel": "^1.12.4"
"parcel": "^1.12.4",
"mocha": "^8.0.1"
}
}
3 changes: 1 addition & 2 deletions packages/react-flip-toolkit/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
"@babel/preset-typescript",
"@babel/preset-react",
"@babel/preset-env"
],
"plugins": ["@babel/plugin-proposal-class-properties"]
]
}
6 changes: 0 additions & 6 deletions packages/react-flip-toolkit/mocha/tests.js

This file was deleted.

61 changes: 30 additions & 31 deletions packages/react-flip-toolkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,44 +56,43 @@
"react-dom": ">= 16.x"
},
"devDependencies": {
"@babel/core": "^7.5.5",
"@babel/plugin-proposal-class-properties": "^7.5.0",
"@babel/plugin-transform-typescript": "^7.4.5",
"@babel/preset-env": "^7.5.0",
"@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "^7.3.3",
"@babel/runtime": "^7.4.5",
"@types/jest": "^24.0.15",
"@types/react": "^16.8.20",
"@types/react-dom": "^16.8.4",
"@types/react-test-renderer": "^16.8.2",
"@typescript-eslint/eslint-plugin": "^1.10.2",
"@typescript-eslint/parser": "^1.10.2",
"babel-jest": "^24.7.0",
"@babel/core": "^7.10.2",
"@babel/plugin-proposal-class-properties": "^7.10.1",
"@babel/plugin-transform-typescript": "^7.10.1",
"@babel/preset-env": "^7.10.2",
"@babel/preset-react": "^7.10.1",
"@babel/preset-typescript": "^7.10.1",
"@babel/runtime": "^7.10.2",
"@types/jest": "^26.0.0",
"@types/react": "^16.9.36",
"@types/react-dom": "^16.9.8",
"@types/react-test-renderer": "^16.9.2",
"@typescript-eslint/eslint-plugin": "^3.2.0",
"@typescript-eslint/parser": "^3.2.0",
"babel-jest": "^26.0.1",
"babel-polyfill": "^6.26.0",
"babel-preset-react-app": "^9.0.0",
"babel-preset-react-app": "^9.1.2",
"chai": "^4.2.0",
"eslint": "^5.16.0",
"eslint-plugin-react": "^7.14.3",
"jest": "^24.7.1",
"eslint": "^7.2.0",
"eslint-plugin-react": "^7.20.0",
"jest": "^26.0.1",
"microbundle": "0.11.0",
"mocha": "^6.2.0",
"normalize.css": "^8.0.1",
"npm": "^6.13.7",
"npm": "^6.14.5",
"npm-run-all": "^4.1.5",
"npm-watch": "^0.6.0",
"parcel": "^1.12.3",
"prettier": "1.18.2",
"react": "^16.9.0",
"react-dom": "^16.9.0",
"react-icons": "^3.7.0",
"react-scripts": "^3.0.1",
"react-test-renderer": "^16.8.6",
"regenerator-runtime": "^0.13.2",
"sinon": "^7.3.2",
"parcel": "^1.12.4",
"prettier": "2.0.5",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-icons": "^3.10.0",
"react-scripts": "^3.4.1",
"react-test-renderer": "^16.13.1",
"regenerator-runtime": "^0.13.5",
"sinon": "^9.0.2",
"styled-components": "^4.3.2",
"ts-jest": "^24.0.2",
"typescript": "^3.5.2",
"ts-jest": "^26.1.0",
"typescript": "^3.9.5",
"watch": "^1.0.2"
},
"files": [
Expand Down
4 changes: 2 additions & 2 deletions packages/react-flip-toolkit/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"esModuleInterop": true,
"strict": true,
"resolveJsonModule": true,
"isolatedModules": true,
"isolatedModules": true
},
"include": ["src", "@types", "../flip-toolkit/FlipToolkit"],
"include": ["src", "@types"],
"exclude": [
"node_modules",
"build",
Expand Down
Loading

0 comments on commit 77d3096

Please sign in to comment.