@storybook/codemod 7.0.0-alpha.49 → 7.0.0-alpha.50

Sign up to get free protection for your applications and to get access to all the features.
package/jest.config.js ADDED
@@ -0,0 +1,7 @@
1
+ const path = require('path');
2
+ const baseConfig = require('../../jest.config.node');
3
+
4
+ module.exports = {
5
+ ...baseConfig,
6
+ displayName: __dirname.split(path.sep).slice(-2).join(path.posix.sep),
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/codemod",
3
- "version": "7.0.0-alpha.49",
3
+ "version": "7.0.0-alpha.50",
4
4
  "description": "A collection of codemod scripts written with JSCodeshift",
5
5
  "keywords": [
6
6
  "storybook"
@@ -38,10 +38,10 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@babel/types": "^7.12.11",
41
- "@storybook/csf": "next",
42
- "@storybook/csf-tools": "7.0.0-alpha.49",
43
- "@storybook/node-logger": "7.0.0-alpha.49",
44
- "@storybook/types": "7.0.0-alpha.49",
41
+ "@storybook/csf": "0.0.2-next.7",
42
+ "@storybook/csf-tools": "7.0.0-alpha.50",
43
+ "@storybook/node-logger": "7.0.0-alpha.50",
44
+ "@storybook/types": "7.0.0-alpha.50",
45
45
  "cross-spawn": "^7.0.3",
46
46
  "globby": "^11.0.2",
47
47
  "jscodeshift": "^0.13.1",
@@ -51,8 +51,8 @@
51
51
  "util": "^0.12.4"
52
52
  },
53
53
  "devDependencies": {
54
- "jest": "^26.6.3",
55
- "jest-specific-snapshot": "^4.0.0",
54
+ "jest": "^28.0.0",
55
+ "jest-specific-snapshot": "^6.0.0",
56
56
  "typescript": "~4.6.3"
57
57
  },
58
58
  "publishConfig": {
@@ -64,5 +64,5 @@
64
64
  "./src/index.js"
65
65
  ]
66
66
  },
67
- "gitHead": "d7eb433300cac55d3c7256c8181eb6fd7a47b4c8"
67
+ "gitHead": "77184d039091f4782dc4540df6d271a24fb3e242"
68
68
  }
@@ -1,11 +1,10 @@
1
- import { describe } from '@jest/globals';
1
+ import { describe, it, expect } from '@jest/globals';
2
2
  import { dedent } from 'ts-dedent';
3
3
  import _transform from '../csf-2-to-3';
4
4
 
5
- // @ts-expect-error (Converted from ts-ignore)
6
5
  expect.addSnapshotSerializer({
7
6
  print: (val: any) => val,
8
- test: (val) => true,
7
+ test: () => true,
9
8
  });
10
9
 
11
10
  const jsTransform = (source: string) => _transform({ source }, null, {}).trim();
package/tsconfig.json CHANGED
@@ -1,13 +1,7 @@
1
1
  {
2
2
  "extends": "../../tsconfig.json",
3
- "compilerOptions": {},
4
- "include": ["src/**/*"],
5
- "exclude": [
6
- "src/**/*.test.*",
7
- "src/**/tests/**/*",
8
- "src/**/__tests__/**/*",
9
- "src/**/*.stories.*",
10
- "src/**/*.mockdata.*",
11
- "src/**/__testfixtures__/**"
12
- ]
3
+ "compilerOptions": {
4
+ "skipLibCheck": true
5
+ },
6
+ "include": ["src/**/*"]
13
7
  }