Skip to content

Commit

Permalink
fix: Update all packages to use @lowdefy/jest-yaml-transform.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gervwyk committed May 30, 2022
1 parent dd9dbe4 commit 7bdf0a4
Show file tree
Hide file tree
Showing 24 changed files with 132 additions and 96 deletions.
55 changes: 36 additions & 19 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
2 changes: 1 addition & 1 deletion packages/client/jest.config.js
Expand Up @@ -10,7 +10,7 @@ export default {
testPathIgnorePatterns: ['<rootDir>/dist/', '<rootDir>/src/test'],
transform: {
'^.+\\.(t|j)sx?$': ['@swc/jest', { configFile: '../../.swcrc.test' }],
'\\.yaml$': 'jest-transform-yaml',
'\\.yaml$': '@lowdefy/jest-yaml-transform',
},
snapshotSerializers: ['@emotion/jest/serializer', 'jest-serializer-html'],
};
4 changes: 2 additions & 2 deletions packages/client/package.json
Expand Up @@ -53,6 +53,7 @@
},
"devDependencies": {
"@emotion/jest": "11.9.1",
"@lowdefy/jest-yaml-transform": "4.0.0-alpha.12",
"@swc/cli": "0.1.57",
"@swc/core": "1.2.194",
"@swc/jest": "0.2.21",
Expand All @@ -61,8 +62,7 @@
"@testing-library/user-event": "14.2.0",
"copyfiles": "2.4.1",
"jest": "28.1.0",
"jest-serializer-html": "7.1.0",
"jest-transform-yaml": "1.0.0"
"jest-serializer-html": "7.1.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/layout/jest.config.js
Expand Up @@ -14,7 +14,7 @@ export default {
},
transform: {
'^.+\\.(t|j)sx?$': ['@swc/jest', { configFile: '../../.swcrc.test' }],
'\\.yaml$': 'jest-transform-yaml',
'\\.yaml$': '@lowdefy/jest-yaml-transform',
},
snapshotSerializers: ['@emotion/jest/serializer', 'jest-serializer-html'],
};
5 changes: 3 additions & 2 deletions packages/layout/package.json
Expand Up @@ -51,6 +51,7 @@
"devDependencies": {
"@emotion/jest": "11.9.1",
"@lowdefy/block-dev": "4.0.0-alpha.12",
"@lowdefy/jest-yaml-transform": "4.0.0-alpha.12",
"@swc/cli": "0.1.57",
"@swc/core": "1.2.194",
"@swc/jest": "0.2.21",
Expand All @@ -59,8 +60,8 @@
"@testing-library/user-event": "14.2.0",
"copyfiles": "2.4.1",
"jest": "28.1.0",
"jest-serializer-html": "7.1.0",
"jest-transform-yaml": "1.0.0"
"jest-environment-jsdom": "28.1.0",
"jest-serializer-html": "7.1.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/layout/src/tests/__snapshots__/basic.test.js.snap
Expand Up @@ -8,7 +8,7 @@ exports[`Button 1`] = `
style="border: 1px dashed #8eccf5;"
>
<button
class="ant-btn"
class="ant-btn ant-btn-default"
id="Button23456"
type="button"
>
Expand Down
12 changes: 6 additions & 6 deletions packages/layout/src/tests/__snapshots__/col.test.js.snap
Expand Up @@ -37,7 +37,7 @@ exports[`align 1`] = `
style="align-self: flex-start; border: 1px dashed #8eccf5;"
>
<button
class="ant-btn"
class="ant-btn ant-btn-default"
id="One23456"
type="button"
>
Expand All @@ -52,7 +52,7 @@ exports[`align 1`] = `
style="align-self: center; border: 1px dashed #8eccf5;"
>
<button
class="ant-btn"
class="ant-btn ant-btn-default"
id="Two23456"
type="button"
>
Expand All @@ -67,7 +67,7 @@ exports[`align 1`] = `
style="align-self: flex-end; border: 1px dashed #8eccf5;"
>
<button
class="ant-btn"
class="ant-btn ant-btn-default"
id="Three23456"
type="button"
>
Expand Down Expand Up @@ -117,7 +117,7 @@ exports[`align 2`] = `
style="align-self: flex-start;"
>
<button
class="ant-btn"
class="ant-btn ant-btn-default"
id="One23456"
type="button"
>
Expand All @@ -132,7 +132,7 @@ exports[`align 2`] = `
style="align-self: center;"
>
<button
class="ant-btn"
class="ant-btn ant-btn-default"
id="Two23456"
type="button"
>
Expand All @@ -147,7 +147,7 @@ exports[`align 2`] = `
style="align-self: flex-end;"
>
<button
class="ant-btn"
class="ant-btn ant-btn-default"
id="Three23456"
type="button"
>
Expand Down
28 changes: 14 additions & 14 deletions packages/layout/src/tests/__snapshots__/complex.test.js.snap
Expand Up @@ -98,7 +98,7 @@ exports[`Complex Example 1`] = `
style="flex: 0 0 auto; border: 1px dashed #8eccf5;"
>
<button
class="ant-btn"
class="ant-btn ant-btn-default"
id="Assign23456"
type="button"
>
Expand All @@ -113,7 +113,7 @@ exports[`Complex Example 1`] = `
style="flex: 0 0 auto; border: 1px dashed #8eccf5;"
>
<button
class="ant-btn"
class="ant-btn ant-btn-default"
id="Reporter23456"
type="button"
>
Expand All @@ -128,7 +128,7 @@ exports[`Complex Example 1`] = `
style="flex: 0 0 auto; border: 1px dashed #8eccf5;"
>
<button
class="ant-btn"
class="ant-btn ant-btn-default"
id="Status23456"
type="button"
>
Expand All @@ -143,7 +143,7 @@ exports[`Complex Example 1`] = `
style="flex: 1 0 auto; border: 1px dashed #8eccf5;"
>
<button
class="ant-btn"
class="ant-btn ant-btn-default"
id="Type23456"
type="button"
>
Expand Down Expand Up @@ -212,7 +212,7 @@ exports[`Complex Example 1`] = `
style="flex: 1 1 auto; border: 1px dashed #8eccf5;"
>
<button
class="ant-btn"
class="ant-btn ant-btn-default"
id="Created23456"
type="button"
>
Expand All @@ -227,7 +227,7 @@ exports[`Complex Example 1`] = `
style="flex: 0 1 auto; border: 1px dashed #8eccf5;"
>
<button
class="ant-btn"
class="ant-btn ant-btn-default"
id="Fil23456"
type="button"
>
Expand All @@ -242,7 +242,7 @@ exports[`Complex Example 1`] = `
style="flex: 0 1 auto; border: 1px dashed #8eccf5;"
>
<button
class="ant-btn"
class="ant-btn ant-btn-default"
id="Ref23456"
type="button"
>
Expand Down Expand Up @@ -562,7 +562,7 @@ exports[`Complex No Flex Field Example 1`] = `
style="flex: 0 1 auto; border: 1px dashed #8eccf5;"
>
<button
class="ant-btn"
class="ant-btn ant-btn-default"
id="Assign23456"
type="button"
>
Expand All @@ -577,7 +577,7 @@ exports[`Complex No Flex Field Example 1`] = `
style="flex: 0 1 auto; border: 1px dashed #8eccf5;"
>
<button
class="ant-btn"
class="ant-btn ant-btn-default"
id="Reporter23456"
type="button"
>
Expand All @@ -592,7 +592,7 @@ exports[`Complex No Flex Field Example 1`] = `
style="flex: 0 1 auto; border: 1px dashed #8eccf5;"
>
<button
class="ant-btn"
class="ant-btn ant-btn-default"
id="Status23456"
type="button"
>
Expand All @@ -607,7 +607,7 @@ exports[`Complex No Flex Field Example 1`] = `
style="flex: 1 1 auto; border: 1px dashed #8eccf5;"
>
<button
class="ant-btn"
class="ant-btn ant-btn-default"
id="Type23456"
type="button"
>
Expand Down Expand Up @@ -676,7 +676,7 @@ exports[`Complex No Flex Field Example 1`] = `
style="flex: 1 1 auto; border: 1px dashed #8eccf5;"
>
<button
class="ant-btn"
class="ant-btn ant-btn-default"
id="Created23456"
type="button"
>
Expand All @@ -691,7 +691,7 @@ exports[`Complex No Flex Field Example 1`] = `
style="flex: 0 1 auto; border: 1px dashed #8eccf5;"
>
<button
class="ant-btn"
class="ant-btn ant-btn-default"
id="Fil23456"
type="button"
>
Expand All @@ -706,7 +706,7 @@ exports[`Complex No Flex Field Example 1`] = `
style="flex: 0 1 auto; border: 1px dashed #8eccf5;"
>
<button
class="ant-btn"
class="ant-btn ant-btn-default"
id="Ref23456"
type="button"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/blocks/blocks-antd/jest.config.js
Expand Up @@ -16,7 +16,7 @@ export default {
testPathIgnorePatterns: ['<rootDir>/dist/', '<rootDir>/src/test'],
transform: {
'^.+\\.(t|j)sx?$': ['@swc/jest', { configFile: '../../../../.swcrc.test' }],
'\\.yaml$': 'jest-transform-yaml',
'\\.yaml$': '@lowdefy/jest-yaml-transform',
},
snapshotSerializers: ['@emotion/jest/serializer', 'jest-serializer-html'],
};
5 changes: 3 additions & 2 deletions packages/plugins/blocks/blocks-antd/package.json
Expand Up @@ -65,6 +65,7 @@
"devDependencies": {
"@emotion/jest": "11.9.1",
"@lowdefy/block-dev": "4.0.0-alpha.12",
"@lowdefy/jest-yaml-transform": "4.0.0-alpha.12",
"@lowdefy/node-utils": "4.0.0-alpha.12",
"@swc/cli": "0.1.57",
"@swc/core": "1.2.194",
Expand All @@ -74,8 +75,8 @@
"@testing-library/user-event": "14.2.0",
"copyfiles": "2.4.1",
"jest": "28.1.0",
"jest-serializer-html": "7.1.0",
"jest-transform-yaml": "1.0.0"
"jest-environment-jsdom": "28.1.0",
"jest-serializer-html": "7.1.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/blocks/blocks-basic/jest.config.js
Expand Up @@ -16,7 +16,7 @@ export default {
testPathIgnorePatterns: ['<rootDir>/dist/', '<rootDir>/src/test'],
transform: {
'^.+\\.(t|j)sx?$': ['@swc/jest', { configFile: '../../../../.swcrc.test' }],
'\\.yaml$': 'jest-transform-yaml',
'\\.yaml$': '@lowdefy/jest-yaml-transform',
},
snapshotSerializers: ['@emotion/jest/serializer', 'jest-serializer-html'],
};
5 changes: 3 additions & 2 deletions packages/plugins/blocks/blocks-basic/package.json
Expand Up @@ -58,6 +58,7 @@
"devDependencies": {
"@emotion/jest": "11.9.1",
"@lowdefy/block-dev": "4.0.0-alpha.12",
"@lowdefy/jest-yaml-transform": "4.0.0-alpha.12",
"@swc/cli": "0.1.57",
"@swc/core": "1.2.194",
"@swc/jest": "0.2.21",
Expand All @@ -66,8 +67,8 @@
"@testing-library/user-event": "14.2.0",
"copyfiles": "2.4.1",
"jest": "28.1.0",
"jest-serializer-html": "7.1.0",
"jest-transform-yaml": "1.0.0"
"jest-environment-jsdom": "28.1.0",
"jest-serializer-html": "7.1.0"
},
"publishConfig": {
"access": "public"
Expand Down
Expand Up @@ -16,7 +16,7 @@ export default {
testPathIgnorePatterns: ['<rootDir>/dist/', '<rootDir>/src/test'],
transform: {
'^.+\\.(t|j)sx?$': ['@swc/jest', { configFile: '../../../../.swcrc.test' }],
'\\.yaml$': 'jest-transform-yaml',
'\\.yaml$': '@lowdefy/jest-yaml-transform',
},
snapshotSerializers: ['@emotion/jest/serializer', 'jest-serializer-html'],
};
5 changes: 3 additions & 2 deletions packages/plugins/blocks/blocks-color-selectors/package.json
Expand Up @@ -61,6 +61,7 @@
"devDependencies": {
"@emotion/jest": "11.9.1",
"@lowdefy/block-dev": "4.0.0-alpha.12",
"@lowdefy/jest-yaml-transform": "4.0.0-alpha.12",
"@swc/cli": "0.1.57",
"@swc/core": "1.2.194",
"@swc/jest": "0.2.21",
Expand All @@ -70,8 +71,8 @@
"copyfiles": "2.4.1",
"jest": "28.1.0",
"jest-canvas-mock": "2.4.0",
"jest-serializer-html": "7.1.0",
"jest-transform-yaml": "1.0.0"
"jest-environment-jsdom": "28.1.0",
"jest-serializer-html": "7.1.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/blocks/blocks-echarts/jest.config.js
Expand Up @@ -16,7 +16,7 @@ export default {
testPathIgnorePatterns: ['<rootDir>/dist/', '<rootDir>/src/test'],
transform: {
'^.+\\.(t|j)sx?$': ['@swc/jest', { configFile: '../../../../.swcrc.test' }],
'\\.yaml$': 'jest-transform-yaml',
'\\.yaml$': '@lowdefy/jest-yaml-transform',
},
snapshotSerializers: ['@emotion/jest/serializer', 'jest-serializer-html'],
};
5 changes: 3 additions & 2 deletions packages/plugins/blocks/blocks-echarts/package.json
Expand Up @@ -60,6 +60,7 @@
"devDependencies": {
"@emotion/jest": "11.9.1",
"@lowdefy/block-dev": "4.0.0-alpha.12",
"@lowdefy/jest-yaml-transform": "4.0.0-alpha.12",
"@swc/cli": "0.1.57",
"@swc/core": "1.2.194",
"@swc/jest": "0.2.21",
Expand All @@ -68,8 +69,8 @@
"@testing-library/user-event": "14.2.0",
"copyfiles": "2.4.1",
"jest": "28.1.0",
"jest-serializer-html": "7.1.0",
"jest-transform-yaml": "1.0.0"
"jest-environment-jsdom": "28.1.0",
"jest-serializer-html": "7.1.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/blocks/blocks-loaders/jest.config.js
Expand Up @@ -16,7 +16,7 @@ export default {
testPathIgnorePatterns: ['<rootDir>/dist/', '<rootDir>/src/test'],
transform: {
'^.+\\.(t|j)sx?$': ['@swc/jest', { configFile: '../../../../.swcrc.test' }],
'\\.yaml$': 'jest-transform-yaml',
'\\.yaml$': '@lowdefy/jest-yaml-transform',
},
snapshotSerializers: ['@emotion/jest/serializer', 'jest-serializer-html'],
};
5 changes: 3 additions & 2 deletions packages/plugins/blocks/blocks-loaders/package.json
Expand Up @@ -57,6 +57,7 @@
"devDependencies": {
"@emotion/jest": "11.9.1",
"@lowdefy/block-dev": "4.0.0-alpha.12",
"@lowdefy/jest-yaml-transform": "4.0.0-alpha.12",
"@swc/cli": "0.1.57",
"@swc/core": "1.2.194",
"@swc/jest": "0.2.21",
Expand All @@ -65,8 +66,8 @@
"@testing-library/user-event": "14.2.0",
"copyfiles": "2.4.1",
"jest": "28.1.0",
"jest-serializer-html": "7.1.0",
"jest-transform-yaml": "1.0.0"
"jest-environment-jsdom": "28.1.0",
"jest-serializer-html": "7.1.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/blocks/blocks-markdown/jest.config.js
Expand Up @@ -16,7 +16,7 @@ export default {
testPathIgnorePatterns: ['<rootDir>/dist/', '<rootDir>/src/test'],
transform: {
'^.+\\.(t|j)sx?$': ['@swc/jest', { configFile: '../../../../.swcrc.test' }],
'\\.yaml$': 'jest-transform-yaml',
'\\.yaml$': '@lowdefy/jest-yaml-transform',
},
snapshotSerializers: ['@emotion/jest/serializer', 'jest-serializer-html'],
};

0 comments on commit 7bdf0a4

Please sign in to comment.