From c40c63ddfe6055405f4c2eab815f380eb1fc6553 Mon Sep 17 00:00:00 2001 From: Lesya Turanscaia Date: Fri, 6 Sep 2024 15:27:28 -0700 Subject: [PATCH] @W-16552826 Fix package name (#309) * v17.0.0 * Fix the package name --------- Co-authored-by: lturanscaia --- packages/@lwc/jest-ssr-snaphot-utils/package.json | 4 ++-- ...ssr-snapshot-utils.test.js => jssr-snapshot-utils.test.js} | 0 test/src/modules/ssr/basic/__tests__/basic.ssr-test.js | 2 +- .../__tests__/emptyTextExpression.ssr-test.js | 2 +- .../ssr/frameworkAttrs/__tests__/frameworkAttrs.ssr-test.js | 2 +- .../__tests__/frameworkAttrsWithValue.ssr-test.js | 2 +- .../__tests__/lightDomSlotElement.ssr-test.js | 2 +- .../lightDomSlotEmpty/__tests__/lightDomSlotEmpty.ssr-test.js | 2 +- .../lightDomSlotText/__tests__/lightDomSlotText.ssr-test.js | 2 +- .../modules/ssr/scopedStyle/__tests__/scopedStyle.ssr-test.js | 2 +- .../__tests__/scopedStyleHostLight.ssr-test.js | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) rename packages/@lwc/jest-ssr-snaphot-utils/src/__tests__/{jest-ssr-snapshot-utils.test.js => jssr-snapshot-utils.test.js} (100%) diff --git a/packages/@lwc/jest-ssr-snaphot-utils/package.json b/packages/@lwc/jest-ssr-snaphot-utils/package.json index fbaf92d..caf906d 100644 --- a/packages/@lwc/jest-ssr-snaphot-utils/package.json +++ b/packages/@lwc/jest-ssr-snaphot-utils/package.json @@ -1,12 +1,12 @@ { - "name": "@lwc/ssr-snapshot-utils", + "name": "@lwc/jest-ssr-snapshot-utils", "version": "17.0.0", "description": "Jest snapshot utils for SSR", "homepage": "https://lwc.dev/", "repository": { "type": "git", "url": "https://github.com/salesforce/lwc-test.git", - "directory": "packages/@lwc/ssr-snapshot-utils" + "directory": "packages/@lwc/jest-ssr-snapshot-utils" }, "bugs": { "url": "https://github.com/salesforce/lwc-test/issues" diff --git a/packages/@lwc/jest-ssr-snaphot-utils/src/__tests__/jest-ssr-snapshot-utils.test.js b/packages/@lwc/jest-ssr-snaphot-utils/src/__tests__/jssr-snapshot-utils.test.js similarity index 100% rename from packages/@lwc/jest-ssr-snaphot-utils/src/__tests__/jest-ssr-snapshot-utils.test.js rename to packages/@lwc/jest-ssr-snaphot-utils/src/__tests__/jssr-snapshot-utils.test.js diff --git a/test/src/modules/ssr/basic/__tests__/basic.ssr-test.js b/test/src/modules/ssr/basic/__tests__/basic.ssr-test.js index 731fb19..2b5e1ee 100644 --- a/test/src/modules/ssr/basic/__tests__/basic.ssr-test.js +++ b/test/src/modules/ssr/basic/__tests__/basic.ssr-test.js @@ -4,7 +4,7 @@ * SPDX-License-Identifier: MIT * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT */ -import { renderAndHashComponent } from '@lwc/ssr-snapshot-utils/src/ssr-snapshot-utils'; +import { renderAndHashComponent } from '@lwc/jest-ssr-snapshot-utils/src/ssr-snapshot-utils'; import Basic from 'ssr/basic'; it('renders a basic component and saves formatted snapshot', () => { diff --git a/test/src/modules/ssr/emptyTextExpression/__tests__/emptyTextExpression.ssr-test.js b/test/src/modules/ssr/emptyTextExpression/__tests__/emptyTextExpression.ssr-test.js index 6164caa..f3d52b3 100644 --- a/test/src/modules/ssr/emptyTextExpression/__tests__/emptyTextExpression.ssr-test.js +++ b/test/src/modules/ssr/emptyTextExpression/__tests__/emptyTextExpression.ssr-test.js @@ -4,7 +4,7 @@ * SPDX-License-Identifier: MIT * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT */ -import { renderAndHashComponent } from '@lwc/ssr-snapshot-utils/src/ssr-snapshot-utils'; +import { renderAndHashComponent } from '@lwc/jest-ssr-snapshot-utils/src/ssr-snapshot-utils'; import EmptyTextExpression from 'ssr/emptyTextExpression'; it('renders a basic component with an empty text expression', () => { diff --git a/test/src/modules/ssr/frameworkAttrs/__tests__/frameworkAttrs.ssr-test.js b/test/src/modules/ssr/frameworkAttrs/__tests__/frameworkAttrs.ssr-test.js index e913542..ec30989 100644 --- a/test/src/modules/ssr/frameworkAttrs/__tests__/frameworkAttrs.ssr-test.js +++ b/test/src/modules/ssr/frameworkAttrs/__tests__/frameworkAttrs.ssr-test.js @@ -4,7 +4,7 @@ * SPDX-License-Identifier: MIT * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT */ -import { renderAndHashComponent } from '@lwc/ssr-snapshot-utils/src/ssr-snapshot-utils'; +import { renderAndHashComponent } from '@lwc/jest-ssr-snapshot-utils/src/ssr-snapshot-utils'; import FrameworkAttrs from '../frameworkAttrs'; it('serializes component with framework-supplied attributes', () => { diff --git a/test/src/modules/ssr/frameworkAttrsWithValue/__tests__/frameworkAttrsWithValue.ssr-test.js b/test/src/modules/ssr/frameworkAttrsWithValue/__tests__/frameworkAttrsWithValue.ssr-test.js index ba12bf4..d790f63 100644 --- a/test/src/modules/ssr/frameworkAttrsWithValue/__tests__/frameworkAttrsWithValue.ssr-test.js +++ b/test/src/modules/ssr/frameworkAttrsWithValue/__tests__/frameworkAttrsWithValue.ssr-test.js @@ -4,7 +4,7 @@ * SPDX-License-Identifier: MIT * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT */ -import { renderAndHashComponent } from '@lwc/ssr-snapshot-utils/src/ssr-snapshot-utils'; +import { renderAndHashComponent } from '@lwc/jest-ssr-snapshot-utils/src/ssr-snapshot-utils'; import FrameworkAttrsWithValue from '../frameworkAttrsWithValue'; it('serializes component with framework-supplied attributes with value', () => { diff --git a/test/src/modules/ssr/lightDomSlotElement/__tests__/lightDomSlotElement.ssr-test.js b/test/src/modules/ssr/lightDomSlotElement/__tests__/lightDomSlotElement.ssr-test.js index 93caca6..64d55bc 100644 --- a/test/src/modules/ssr/lightDomSlotElement/__tests__/lightDomSlotElement.ssr-test.js +++ b/test/src/modules/ssr/lightDomSlotElement/__tests__/lightDomSlotElement.ssr-test.js @@ -4,7 +4,7 @@ * SPDX-License-Identifier: MIT * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT */ -import { renderAndHashComponent } from '@lwc/ssr-snapshot-utils/src/ssr-snapshot-utils'; +import { renderAndHashComponent } from '@lwc/jest-ssr-snapshot-utils/src/ssr-snapshot-utils'; import LightDomSlotElement from 'ssr/lightDomSlotElement'; it('renders a basic component with light DOM slot with element slotted', () => { diff --git a/test/src/modules/ssr/lightDomSlotEmpty/__tests__/lightDomSlotEmpty.ssr-test.js b/test/src/modules/ssr/lightDomSlotEmpty/__tests__/lightDomSlotEmpty.ssr-test.js index 7d7aee4..8227b4d 100644 --- a/test/src/modules/ssr/lightDomSlotEmpty/__tests__/lightDomSlotEmpty.ssr-test.js +++ b/test/src/modules/ssr/lightDomSlotEmpty/__tests__/lightDomSlotEmpty.ssr-test.js @@ -4,7 +4,7 @@ * SPDX-License-Identifier: MIT * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT */ -import { renderAndHashComponent } from '@lwc/ssr-snapshot-utils/src/ssr-snapshot-utils'; +import { renderAndHashComponent } from '@lwc/jest-ssr-snapshot-utils/src/ssr-snapshot-utils'; import LightDomSlotEmpty from 'ssr/lightDomSlotEmpty'; it('renders a basic component with light DOM slot with nothing slotted', () => { diff --git a/test/src/modules/ssr/lightDomSlotText/__tests__/lightDomSlotText.ssr-test.js b/test/src/modules/ssr/lightDomSlotText/__tests__/lightDomSlotText.ssr-test.js index 6621b11..50ed278 100644 --- a/test/src/modules/ssr/lightDomSlotText/__tests__/lightDomSlotText.ssr-test.js +++ b/test/src/modules/ssr/lightDomSlotText/__tests__/lightDomSlotText.ssr-test.js @@ -4,7 +4,7 @@ * SPDX-License-Identifier: MIT * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT */ -import { renderAndHashComponent } from '@lwc/ssr-snapshot-utils/src/ssr-snapshot-utils'; +import { renderAndHashComponent } from '@lwc/jest-ssr-snapshot-utils/src/ssr-snapshot-utils'; import LightDomSlotText from 'ssr/lightDomSlotText'; it('renders a basic component with light DOM slot with text node slotted', () => { diff --git a/test/src/modules/ssr/scopedStyle/__tests__/scopedStyle.ssr-test.js b/test/src/modules/ssr/scopedStyle/__tests__/scopedStyle.ssr-test.js index 0fc0079..f3f1a15 100644 --- a/test/src/modules/ssr/scopedStyle/__tests__/scopedStyle.ssr-test.js +++ b/test/src/modules/ssr/scopedStyle/__tests__/scopedStyle.ssr-test.js @@ -4,7 +4,7 @@ * SPDX-License-Identifier: MIT * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT */ -import { renderAndHashComponent } from '@lwc/ssr-snapshot-utils/src/ssr-snapshot-utils'; +import { renderAndHashComponent } from '@lwc/jest-ssr-snapshot-utils/src/ssr-snapshot-utils'; import ScopedStyle from 'ssr/scopedStyle'; it('renders a basic component with scoped styles', () => { diff --git a/test/src/modules/ssr/scopedStyleHostLight/__tests__/scopedStyleHostLight.ssr-test.js b/test/src/modules/ssr/scopedStyleHostLight/__tests__/scopedStyleHostLight.ssr-test.js index ff5076a..8c6b83f 100644 --- a/test/src/modules/ssr/scopedStyleHostLight/__tests__/scopedStyleHostLight.ssr-test.js +++ b/test/src/modules/ssr/scopedStyleHostLight/__tests__/scopedStyleHostLight.ssr-test.js @@ -4,7 +4,7 @@ * SPDX-License-Identifier: MIT * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT */ -import { renderAndHashComponent } from '@lwc/ssr-snapshot-utils/src/ssr-snapshot-utils'; +import { renderAndHashComponent } from '@lwc/jest-ssr-snapshot-utils/src/ssr-snapshot-utils'; import ScopedStyleHostLight from 'ssr/scopedStyleHostLight'; it('renders a basic component with scoped styles, light DOM with :host', () => {