Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/lightning-stubs/datatable/datatable.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default class Datatable extends LightningElement {
@api sortedBy;
@api sortedDirection;
@api suppressBottomBar;
@api wrapTableHeader;
@api wrapTextMaxLines;
@api getSelectedRows() {}
@api openInlineEdit() {}
Expand Down
9 changes: 9 additions & 0 deletions src/lightning-stubs/graphql/graphql.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
* Copyright (c) 2025, 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
*/
import { gql, graphql } from '../uiGraphQLApi/uiGraphQLApi';

export { gql, graphql };
6 changes: 6 additions & 0 deletions src/lightning-stubs/uiGraphQLApi/uiGraphQLApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
*/
import { createTestWireAdapter } from '@salesforce/wire-service-jest-util';

/**
* @deprecated import from lightning/graphql instead
*/
export class graphql extends createTestWireAdapter() {
static emit(value, filterFn) {
super.emit({ data: value, errors: undefined }, filterFn);
Expand All @@ -22,5 +25,8 @@ export class graphql extends createTestWireAdapter() {
}
}

/**
* @deprecated import from lightning/graphql instead
*/
export const gql = jest.fn();
export const refreshGraphQL = jest.fn();