8000 fix (tests): fix a bunch of imports after new NS scoped packages · designemail/nativescript-vue@cfe2775 · GitHub
[go: up one dir, main page]

Skip to content

Commit cfe2775

Browse files
committed
fix (tests): fix a bunch of imports after new NS scoped packages
1 parent 90e7a4c commit cfe2775

File tree

3 files changed

+73
-14
lines changed

3 files changed

+73
-14
lines changed

package-lock.json

Lines changed: 67 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/jest-setup.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
jest.mock('tns-core-modules/platform', () => {
1+
jest.mock('@nativescript/core/platform', () => {
22
return {
33
isAndroid: true,
44
isIOS: false,
55
}
66
}, {virtual: true})
77

8-
jest.mock('tns-core-modules/utils/utils', () => {
8+
jest.mock('@nativescript/core/utils/utils', () => {
99
return {
1010
ios: {},
1111
}
1212
}, {virtual: true})
1313

14-
jest.mock('tns-core-modules/ui/core/view', () => {
14+
jest.mock('@nativescript/core/ui/core/view', () => {
1515
return {
1616
View() {
1717
}
1818
}
1919
}, {virtual: true})
20-
jest.mock('tns-core-modules/ui/content-view', () => {
20+
jest.mock('@nativescript/core/ui/content-view', () => {
2121
return {
2222
ContentView() {
2323
}
2424
}
2525
}, {virtual: true})
26-
jest.mock('tns-core-modules/ui/layouts/layout-base', () => {
26+
jest.mock('@nativescript/core/ui/layouts/layout-base', () => {
2727
return {
2828
LayoutBase() {
2929
}

tests/renderer/runtime/components/Frame.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const PageTest = {
4242
}
4343
}
4444

45-
jest.mock('tns-core-modules/ui/frame', () => {
45+
jest.mock('@nativescript/core/ui/frame', () => {
4646
const getComponentByName = require('register').getComponentByName
4747
const Frame = getComponentByName('Frame')
4848

0 commit comments

Comments
 (0)
0