Skip to content

Commit 395feb3

Browse files
author
Kent C. Dodds
committed
chore: update all packages and fix tests
1 parent dd01d8b commit 395feb3

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,20 @@
2626
"author": "Kent C. Dodds <[email protected]> (http://kentcdodds.com/)",
2727
"license": "MIT",
2828
"dependencies": {
29-
"lodash.mergewith": "^4.6.0",
29+
"lodash.mergewith": "^4.6.2",
3030
"strip-indent": "^3.0.0"
3131
},
3232
"devDependencies": {
3333
"@babel/core": "^7.2.0",
34-
"@babel/plugin-proposal-async-generator-functions": "^7.2.0",
34+
"@babel/plugin-proposal-async-generator-functions": "^7.7.0",
3535
"@babel/plugin-syntax-jsx": "^7.2.0",
3636
"@babel/plugin-syntax-typescript": "^7.3.3",
37-
"@babel/plugin-transform-async-to-generator": "^7.2.0",
38-
"@babel/preset-env": "^7.2.0",
39-
"kcd-scripts": "^1.7.0"
37+
"@babel/plugin-transform-async-to-generator": "^7.7.0",
38+
"@babel/preset-env": "^7.7.1",
39+
"kcd-scripts": "^1.11.0"
4040
},
4141
"peerDependencies": {
42-
"@babel/core": "^7.0.0"
42+
"@babel/core": "^7.7.2"
4343
},
4444
"eslintConfig": {
4545
"extends": "./node_modules/kcd-scripts/eslint.js",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log('hello');

src/__tests__/index.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -336,17 +336,16 @@ test('creates output file for new tests', async () => {
336336
await runPluginTester(
337337
getOptions({
338338
filename: __filename,
339-
fixtures: 'fixtures/fixtures',
339+
fixtures: 'fixtures/creates-output-file',
340340
tests: null,
341341
}),
342342
)
343343

344-
const calls = writeFileSyncSpy.mock.calls[0]
345-
const outputMatch = /(\/|\\)output\.(j|t)sx?$/
346-
expect(calls).toEqual([
347-
expect.stringMatching(outputMatch),
348-
'export default <div></div>;',
349-
])
344+
expect(writeFileSyncSpy).toHaveBeenCalledWith(
345+
path.join(__dirname, './fixtures/creates-output-file/fixture/output.js'),
346+
`console.log('hello');`,
347+
)
348+
expect(writeFileSyncSpy).toHaveBeenCalledTimes(1)
350349
})
351350

352351
test('uses the fixture filename in babelOptions', async () => {

0 commit comments

Comments
 (0)