Skip to content

Commit 9f5a91d

Browse files
authored
Fix tests on next
Closes GH-1349. Reviewed-by: John Otander <[email protected]> Reviewed-by: Christian Murphy <[email protected]>
1 parent e7e9d46 commit 9f5a91d

File tree

23 files changed

+3821
-2401
lines changed

23 files changed

+3821
-2401
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@
2626
"publish": "lerna publish --force-publish=\"*\"",
2727
"publish-ci": "lerna publish -y --canary --preid ci --pre-dist-tag ci",
2828
"publish-next": "lerna publish --force-publish=\"*\" --pre-dist-tag next --preid next",
29-
"test-only": "lerna run test --no-private",
30-
"test": "yarn build && yarn lint && yarn test-only"
29+
"test-api": "lerna run test-api --no-private",
30+
"test-coverage": "lerna run test-coverage --no-private",
31+
"test-types": "lerna run test-types --no-private",
32+
"test": "yarn build && yarn lint && yarn test-coverage"
3133
},
3234
"dependencies": {},
3335
"devDependencies": {

packages/babel-plugin-apply-mdx-type-props/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
"@babel/helper-plugin-utils": "7.10.4"
3333
},
3434
"scripts": {
35-
"test": "jest test --coverage"
35+
"test-api": "jest test",
36+
"test-coverage": "jest test --coverage",
37+
"test": "yarn test-coverage"
3638
},
3739
"gitHead": "bf7deab69996449cb99c2217dff75e65855eb2c1"
3840
}

packages/babel-plugin-extract-export-names/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
"@babel/helper-plugin-utils": "7.10.4"
2727
},
2828
"scripts": {
29-
"test": "jest test --coverage"
29+
"test-api": "jest test",
30+
"test-coverage": "jest test --coverage",
31+
"test": "yarn test-coverage"
3032
},
3133
"gitHead": "bf7deab69996449cb99c2217dff75e65855eb2c1"
3234
}

packages/babel-plugin-extract-import-names/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
"@babel/helper-plugin-utils": "7.10.4"
3030
},
3131
"scripts": {
32-
"test": "jest test --coverage"
32+
"test-api": "jest test",
33+
"test-coverage": "jest test --coverage",
34+
"test": "yarn test-coverage"
3335
},
3436
"gitHead": "bf7deab69996449cb99c2217dff75e65855eb2c1"
3537
}

packages/babel-plugin-remove-export-keywords/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
"babel"
2727
],
2828
"scripts": {
29-
"test": "jest test --coverage"
29+
"test-api": "jest test",
30+
"test-coverage": "jest test --coverage",
31+
"test": "yarn test-coverage"
3032
},
3133
"gitHead": "bf7deab69996449cb99c2217dff75e65855eb2c1"
3234
}

packages/gatsby-theme-mdx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"remark-mdx-remove-exports": "^2.0.0-next.8",
5151
"remark-mdx-remove-imports": "^2.0.0-next.8",
5252
"remark-slug": "6.0.0",
53-
"theme-ui": "0.3.1"
53+
"theme-ui": "0.3.4"
5454
},
5555
"gitHead": "bf7deab69996449cb99c2217dff75e65855eb2c1"
5656
}

packages/gatsby-theme-mdx/src/components/playground-editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export default ({code, onChange = () => {}, scope = {}, ...props}) => {
111111
css={css({
112112
p: 3,
113113
border: '1px solid',
114-
borderColor: theme.colors.lightgray,
114+
borderColor: '#f6f6f6',
115115
width: '50%'
116116
})}
117117
/>

packages/gatsby-theme-mdx/src/components/search.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, {useEffect, useRef} from 'react'
22
import {navigate} from 'gatsby'
33
import {css} from 'theme-ui'
44
import SearchIcon from './search-icon'
5+
import theme from './theme'
56

67
const loadJs = () => import('./docsearch.min.js')
78

@@ -18,7 +19,7 @@ const important = styles => {
1819
return next
1920
}
2021

21-
const styles = theme =>
22+
const styles = () =>
2223
important(
2324
css({
2425
display: 'flex',
@@ -42,7 +43,7 @@ const styles = theme =>
4243
}
4344
}
4445
}
45-
})(theme)
46+
})
4647
)
4748

4849
export default props => {
@@ -130,8 +131,7 @@ export default props => {
130131
placeholder="Search"
131132
className="docsearch-input"
132133
title="Type `s` to search"
133-
css={theme =>
134-
css({
134+
css={css({
135135
appearance: 'none',
136136
fontSize: 1,
137137
m: 0,
@@ -147,7 +147,7 @@ export default props => {
147147
outline: 'none',
148148
borderColor: theme.colors.primary
149149
}
150-
})(theme)
150+
})
151151
}
152152
/>
153153
</form>

packages/loader/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@
3535
"loader"
3636
],
3737
"scripts": {
38-
"test-api": "jest test --coverage",
38+
"test-api": "jest test",
39+
"test-coverage": "jest test --coverage",
3940
"test-types": "dtslint types",
40-
"test": "npm run test-api && npm run test-types"
41+
"test": "yarn test-coverage && yarn test-types"
4142
},
4243
"dependencies": {
4344
"@mdx-js/mdx": "^2.0.0-next.8",

packages/mdx/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"types": "types/index.d.ts",
2323
"files": [
2424
"index.js",
25+
"util.js",
2526
"mdx-ast-to-mdx-hast.js",
2627
"mdx-hast-to-jsx.js",
2728
"types/index.d.ts"
@@ -35,14 +36,16 @@
3536
"mdxast"
3637
],
3738
"scripts": {
38-
"test-api": "jest test --coverage",
39+
"test-api": "jest test",
40+
"test-coverage": "jest test --coverage",
3941
"test-types": "dtslint types",
40-
"test": "npm run test-api && npm run test-types"
42+
"test": "yarn test-coverage && yarn test-types"
4143
},
4244
"dependencies": {
4345
"@babel/core": "7.10.5",
4446
"@babel/plugin-syntax-jsx": "7.10.4",
4547
"@babel/plugin-syntax-object-rest-spread": "7.8.3",
48+
"@mdx-js/util": "2.0.0-next.1",
4649
"babel-plugin-apply-mdx-type-prop": "^2.0.0-next.8",
4750
"babel-plugin-extract-export-names": "^2.0.0-next.8",
4851
"babel-plugin-extract-import-names": "^2.0.0-next.8",

0 commit comments

Comments
 (0)