Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Jan 19, 2022
1 parent 78fd801 commit 151812d
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 10 deletions.
1 change: 1 addition & 0 deletions addons/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
"require-from-string": "^2.0.2",
"rxjs": "^6.6.3",
"styled-components": "^5.2.1",
"sveltedoc-parser": "4.1.0",
"terser-webpack-plugin": "^5.0.3",
"tmp": "^0.2.1",
"tslib": "^2.1.0",
Expand Down
1 change: 0 additions & 1 deletion addons/docs/src/frameworks/svelte/extractArgTypes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import * as fs from 'fs';
import { createArgTypes } from './extractArgTypes';

const content = fs.readFileSync(`${__dirname}/sample/MockButton.svelte`, 'utf-8');

describe('Extracting Arguments', () => {
it('should be svelte', () => {
expect(content).toMatchInlineSnapshot(`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Object {
"babelrc": false,
"cacheCompression": false,
"cacheDirectory": true,
"cacheIdentifier": "development:[email protected].7:[email protected].0:[email protected].3:[email protected]",
"cacheIdentifier": "development:[email protected].8:[email protected].1:[email protected].4:[email protected]",
"compact": false,
"configFile": false,
"customize": "NODE_MODULES/babel-preset-react-app/webpack-overrides.js",
Expand Down Expand Up @@ -147,7 +147,7 @@ Object {
"babelrc": false,
"cacheCompression": false,
"cacheDirectory": true,
"cacheIdentifier": "development:[email protected].7:[email protected].0:[email protected].3:[email protected]",
"cacheIdentifier": "development:[email protected].8:[email protected].1:[email protected].4:[email protected]",
"compact": false,
"configFile": false,
"inputSourceMap": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Object {
"babelrc": false,
"cacheCompression": false,
"cacheDirectory": true,
"cacheIdentifier": "production:[email protected].7:[email protected].0:[email protected].3:[email protected]",
"cacheIdentifier": "production:[email protected].8:[email protected].1:[email protected].4:[email protected]",
"compact": true,
"configFile": false,
"customize": "NODE_MODULES/babel-preset-react-app/webpack-overrides.js",
Expand Down Expand Up @@ -145,7 +145,7 @@ Object {
"babelrc": false,
"cacheCompression": false,
"cacheDirectory": true,
"cacheIdentifier": "production:[email protected].7:[email protected].0:[email protected].3:[email protected]",
"cacheIdentifier": "production:[email protected].8:[email protected].1:[email protected].4:[email protected]",
"compact": false,
"configFile": false,
"inputSourceMap": true,
Expand Down
2 changes: 1 addition & 1 deletion lib/preview-web/src/PreviewWeb.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ describe('PreviewWeb', () => {
expect(preview.view.showErrorDisplay).toHaveBeenCalled();
expect((preview.view.showErrorDisplay as jest.Mock).mock.calls[0][0])
.toMatchInlineSnapshot(`
[Error: Expected your framework's preset to export a \\\`renderToDOM\\\` field.
[Error: Expected your framework's preset to export a \`renderToDOM\` field.
Perhaps it needs to be upgraded for Storybook 6.4?
Expand Down
77 changes: 73 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6398,6 +6398,7 @@ __metadata:
require-from-string: ^2.0.2
rxjs: ^6.6.3
styled-components: ^5.2.1
sveltedoc-parser: 4.1.0
terser-webpack-plugin: ^5.0.3
tmp: ^0.2.1
ts-dedent: ^2.0.0
Expand Down Expand Up @@ -12245,7 +12246,7 @@ __metadata:
languageName: node
linkType: hard

"acorn@npm:^7.0.0, acorn@npm:^7.1.0, acorn@npm:^7.1.1, acorn@npm:^7.4.0, acorn@npm:^7.4.1":
"acorn@npm:^7.0.0, acorn@npm:^7.1.0, acorn@npm:^7.1.1, acorn@npm:^7.3.1, acorn@npm:^7.4.0, acorn@npm:^7.4.1":
version: 7.4.1
resolution: "acorn@npm:7.4.1"
bin:
Expand Down Expand Up @@ -21344,7 +21345,7 @@ __metadata:
languageName: node
linkType: hard

"eslint-scope@npm:5.1.1, eslint-scope@npm:^5.0.0, eslint-scope@npm:^5.1.1":
"eslint-scope@npm:5.1.1, eslint-scope@npm:^5.0.0, eslint-scope@npm:^5.1.0, eslint-scope@npm:^5.1.1":
version: 5.1.1
resolution: "eslint-scope@npm:5.1.1"
dependencies:
Expand Down Expand Up @@ -21450,6 +21451,52 @@ __metadata:
languageName: node
linkType: hard

"eslint@npm:7.6.0":
version: 7.6.0
resolution: "eslint@npm:7.6.0"
dependencies:
"@babel/code-frame": ^7.0.0
ajv: ^6.10.0
chalk: ^4.0.0
cross-spawn: ^7.0.2
debug: ^4.0.1
doctrine: ^3.0.0
enquirer: ^2.3.5
eslint-scope: ^5.1.0
eslint-utils: ^2.1.0
eslint-visitor-keys: ^1.3.0
espree: ^7.2.0
esquery: ^1.2.0
esutils: ^2.0.2
file-entry-cache: ^5.0.1
functional-red-black-tree: ^1.0.1
glob-parent: ^5.0.0
globals: ^12.1.0
ignore: ^4.0.6
import-fresh: ^3.0.0
imurmurhash: ^0.1.4
is-glob: ^4.0.0
js-yaml: ^3.13.1
json-stable-stringify-without-jsonify: ^1.0.1
levn: ^0.4.1
lodash: ^4.17.19
minimatch: ^3.0.4
natural-compare: ^1.4.0
optionator: ^0.9.1
progress: ^2.0.0
regexpp: ^3.1.0
semver: ^7.2.1
strip-ansi: ^6.0.0
strip-json-comments: ^3.1.0
table: ^5.2.3
text-table: ^0.2.0
v8-compile-cache: ^2.0.3
bin:
eslint: bin/eslint.js
checksum: 7e5579b693874eb99b250352eee59ba7204960819b202d6c783fce10df1937839d43cc40729781e950133677b7b792c8f3282242e4edc428ce5dd5e088bdf144
languageName: node
linkType: hard

"eslint@npm:8.4.1":
version: 8.4.1
resolution: "eslint@npm:8.4.1"
Expand Down Expand Up @@ -21602,6 +21649,17 @@ __metadata:
languageName: node
linkType: hard

"espree@npm:7.2.0":
version: 7.2.0
resolution: "espree@npm:7.2.0"
dependencies:
acorn: ^7.3.1
acorn-jsx: ^5.2.0
eslint-visitor-keys: ^1.3.0
checksum: c18d11a61f6fbd402773c1fd073b3d92bcf8d56456a62bed3ba1be154383b1fbec7987c069b79077cda19e4c477eb6671e2d3feafebb303d507c75b3a0ed558f
languageName: node
linkType: hard

"espree@npm:9.2.0":
version: 9.2.0
resolution: "espree@npm:9.2.0"
Expand All @@ -21624,7 +21682,7 @@ __metadata:
languageName: node
linkType: hard

"espree@npm:^7.3.0, espree@npm:^7.3.1":
"espree@npm:^7.2.0, espree@npm:^7.3.0, espree@npm:^7.3.1":
version: 7.3.1
resolution: "espree@npm:7.3.1"
dependencies:
Expand Down Expand Up @@ -21676,7 +21734,7 @@ __metadata:
languageName: node
linkType: hard

"esquery@npm:^1.0.1, esquery@npm:^1.4.0":
"esquery@npm:^1.0.1, esquery@npm:^1.2.0, esquery@npm:^1.4.0":
version: 1.4.0
resolution: "esquery@npm:1.4.0"
dependencies:
Expand Down Expand Up @@ -42102,6 +42160,17 @@ __metadata:
languageName: node
linkType: hard

"sveltedoc-parser@npm:4.1.0":
version: 4.1.0
resolution: "sveltedoc-parser@npm:4.1.0"
dependencies:
eslint: 7.6.0
espree: 7.2.0
htmlparser2-svelte: 4.1.0
checksum: f89eba8437cb8827de7d4bee603a487b7feecb3ce6e99f2ef9a45aa38f53ded04a8e48ccd79bf89a2970f3f6aaca4125d8414350edee494a773bbe75754305d4
languageName: node
linkType: hard

"sveltedoc-parser@npm:^4.1.0":
version: 4.3.1
resolution: "sveltedoc-parser@npm:4.3.1"
Expand Down

0 comments on commit 151812d

Please sign in to comment.