Skip to content

Commit

Permalink
Promote prerelease to master[Summer 20] (#158)
Browse files Browse the repository at this point in the history
* chore: prepare for summer20 release (#143)

* 0.8.0

* chore: update jest to v25.5.4 (#152)

* chore: upgrade jest to 25.5.4

* 0.9.0 (#154)

* Update stubs for Summer 20 (#150)

* update stubs for Summer 20

* APPLICATION_SCOPE as symbol

* 0.9.1

* chore: update yarn lock file

Co-authored-by: Aliaksandr Papko <apapko@salesforce.com>
Co-authored-by: Trevor <tbliss@salesforce.com>
  • Loading branch information
3 people committed Jul 22, 2020
1 parent fb6935c commit ce12c28
Show file tree
Hide file tree
Showing 12 changed files with 2,175 additions and 1,393 deletions.
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@salesforce/sfdx-lwc-jest",
"version": "0.7.1",
"version": "0.9.1",
"description": "Run Jest against LWC components in a Salesforce DX workspace environment",
"main": "src/index.js",
"license": "MIT",
Expand All @@ -22,19 +22,19 @@
"test": "jest"
},
"dependencies": {
"@lwc/compiler": "1.1.13-224.4",
"@lwc/engine": "1.1.13-224.4",
"@lwc/jest-preset": "4.1.0-224.3",
"@lwc/jest-resolver": "4.1.0-224.3",
"@lwc/jest-serializer": "4.1.0-224.3",
"@lwc/jest-transformer": "4.1.0-224.3",
"@lwc/module-resolver": "1.1.13-224.4",
"@lwc/synthetic-shadow": "1.1.13-224.4",
"@lwc/wire-service": "1.1.13-224.4",
"@lwc/compiler": "1.3.7-226.4",
"@lwc/engine": "1.3.7-226.4",
"@lwc/jest-preset": "4.5.2-226.0",
"@lwc/jest-resolver": "4.5.2-226.0",
"@lwc/jest-serializer": "4.5.2-226.0",
"@lwc/jest-transformer": "4.5.2-226.0",
"@lwc/module-resolver": "1.3.7-226.4",
"@lwc/synthetic-shadow": "1.3.7-226.4",
"@lwc/wire-service": "1.3.7-226.4",
"@salesforce/wire-service-jest-util": "~2.2.5",
"chalk": "~4.0.0",
"glob": "~7.1.6",
"jest": "24.9.0",
"jest": "25.5.4",
"yargs": "~15.3.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const jestConfig = {
snapshotSerializers: [require.resolve('@lwc/jest-serializer')],
};

const expectedApiVersion = '48.0';
const expectedApiVersion = '49.0';

// Execute command is different on Windows.
const jestPath =
Expand Down
3 changes: 3 additions & 0 deletions src/lightning-stubs/badge/badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
import { LightningElement, api } from 'lwc';

export default class Badge extends LightningElement {
@api iconAlternativeText;
@api iconName;
@api iconPosition;
@api label;
}
2 changes: 0 additions & 2 deletions src/lightning-stubs/configProvider/configProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
export default jest.fn();
export const getPathPrefix = jest.fn();
export const getToken = jest.fn();
export const getLocale = jest.fn();
export const getLocalizationService = jest.fn();
export const getCoreInfo = jest.fn();
export const getIconSvgTemplates = jest.fn();
export const getOneConfig = jest.fn();
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
import { api } from 'lwc';

export const baseNavigation = (superclass) => {
export const baseNavigation = superclass => {
return class extends superclass {
@api keyboardMode;
@api focus;
Expand Down
2 changes: 1 addition & 1 deletion src/lightning-stubs/inputField/inputField.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default class InputField extends LightningElement {
@api dirty;
@api disabled;
@api fieldName;
@api readonly;
@api readOnly;
@api required;
@api value;
@api variant;
Expand Down
1 change: 1 addition & 0 deletions src/lightning-stubs/menuItem/menuItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ export default class MenuItem extends LightningElement {
@api isDraft;
@api label;
@api prefixIconName;
@api target;
@api value;
}
14 changes: 14 additions & 0 deletions src/lightning-stubs/messageService/messageService.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
export const APPLICATION_SCOPE = Symbol('APPLICATION_SCOPE');
export const createMessageChannel = jest.fn();
export const createMessageContext = jest.fn();
export const MessageContext = jest.fn();
export const publish = jest.fn();
export const releaseMessageContext = jest.fn();
export const subscribe = jest.fn();
export const unsubscribe = jest.fn();
2 changes: 1 addition & 1 deletion src/lightning-stubs/navigation/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const CurrentPageReference = jest.fn();

const Navigate = Symbol('Navigate');
const GenerateUrl = Symbol('GenerateUrl');
export const NavigationMixin = (Base) => {
export const NavigationMixin = Base => {
return class extends Base {
[Navigate]() {}
[GenerateUrl]() {
Expand Down
2 changes: 1 addition & 1 deletion src/lightning-stubs/progressRing/progressRing.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Copyright (c) 2020, salesforce.com, inc.
Copyright (c) 2018, salesforce.com, inc.
All rights reserved.
SPDX-License-Identifier: MIT
For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
Expand Down
2 changes: 1 addition & 1 deletion src/lightning-stubs/progressRing/progressRing.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, salesforce.com, inc.
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
Expand Down

0 comments on commit ce12c28

Please sign in to comment.