mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-16 02:19:08 +00:00
jest: fix for new monorepo
This commit is contained in:
parent
057e9f96b4
commit
51dd8bd6b1
10 changed files with 48 additions and 38 deletions
|
@ -53,10 +53,6 @@
|
|||
"babel-plugin-transform-flow-strip-types": "^6.22.0",
|
||||
"chokidar": "^2.1.5",
|
||||
"eslint-plugin-flowtype": "^3.4.2",
|
||||
"flow-bin": "^0.96.0",
|
||||
"flow-typed": "^2.5.1",
|
||||
"jest": "^24.6.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"standard": "12.0.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,18 @@
|
|||
"next/babel", "@babel/preset-flow"
|
||||
],
|
||||
"plugins": [
|
||||
[ "styled-components", { "ssr": true } ],
|
||||
"@babel/plugin-proposal-optional-chaining"
|
||||
]
|
||||
"@babel/plugin-syntax-dynamic-import",
|
||||
"@babel/plugin-proposal-class-properties",
|
||||
["@babel/plugin-transform-runtime",
|
||||
{ "helpers": false }],
|
||||
[ "styled-components", { "ssr": true } ],
|
||||
"@babel/plugin-proposal-optional-chaining"
|
||||
],
|
||||
"env": {
|
||||
"test": {
|
||||
"presets": [
|
||||
["next/babel", {"preset-env": {"modules": "commonjs"}}]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ exports[`<DiscordGuildPic /> falls-back to a default when things go bad. 1`] = `
|
|||
"$$typeof": Symbol(react.forward_ref),
|
||||
"attrs": Array [],
|
||||
"componentStyle": ComponentStyle {
|
||||
"componentId": "discord-guild-pic__Fallback-d55lwu-0",
|
||||
"componentId": "discord-guild-pic__Fallback-sc-93euug-0",
|
||||
"isStatic": true,
|
||||
"lastClassName": "c0",
|
||||
"rules": Array [
|
||||
|
@ -46,7 +46,7 @@ exports[`<DiscordGuildPic /> falls-back to a default when things go bad. 1`] = `
|
|||
"displayName": "discord-guild-pic__Fallback",
|
||||
"foldedComponentIds": Array [],
|
||||
"render": [Function],
|
||||
"styledComponentId": "discord-guild-pic__Fallback-d55lwu-0",
|
||||
"styledComponentId": "discord-guild-pic__Fallback-sc-93euug-0",
|
||||
"target": "div",
|
||||
"toString": [Function],
|
||||
"warnTooManyClasses": [Function],
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
"name": "@roleypoly/ui",
|
||||
"private": true,
|
||||
"version": "2.0.0",
|
||||
"scripts": {
|
||||
"build": "next build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@roleypoly/types": "^2.0.0",
|
||||
"color": "^3.1.0",
|
||||
|
@ -22,16 +25,15 @@
|
|||
"superagent": "^5.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.2.3",
|
||||
"@babel/core": "^7.4.0",
|
||||
"@babel/cli": "^7.4.3",
|
||||
"@babel/core": "^7.4.3",
|
||||
"@babel/node": "^7.2.2",
|
||||
"@babel/plugin-proposal-class-properties": "^7.4.0",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.2.0",
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
|
||||
"@babel/plugin-transform-runtime": "^7.4.0",
|
||||
"@babel/preset-env": "^7.4.2",
|
||||
"@babel/plugin-transform-runtime": "^7.4.3",
|
||||
"@babel/preset-env": "^7.4.3",
|
||||
"@babel/preset-flow": "^7.0.0",
|
||||
"await-outside": "^2.1.2",
|
||||
"babel-eslint": "^10.0.1",
|
||||
"babel-plugin-styled-components": "^1.10.0",
|
||||
"babel-plugin-transform-flow-strip-types": "^6.22.0",
|
||||
|
@ -39,11 +41,6 @@
|
|||
"enzyme-adapter-react-16": "^1.11.2",
|
||||
"enzyme-to-json": "^3.3.5",
|
||||
"eslint-plugin-flowtype": "^3.4.2",
|
||||
"flow-bin": "^0.96.0",
|
||||
"flow-typed": "^2.5.1",
|
||||
"jest": "^24.6.0",
|
||||
"jest-styled-components": "^6.3.1",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"react-test-renderer": "^16.8.6",
|
||||
"standard": "12.0.1"
|
||||
}
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
import { configure } from 'enzyme'
|
||||
import Adapter from 'enzyme-adapter-react-16'
|
||||
|
||||
configure({ adapter: new Adapter() })
|
Loading…
Add table
Add a link
Reference in a new issue