Enforce node: schema for builtins, import extensions

This commit is contained in:
Fedor Indutny
2025-09-16 17:39:03 -07:00
committed by GitHub
parent cc6b8795b8
commit c02565eaa8
2096 changed files with 14955 additions and 14023 deletions

View File

@@ -4,12 +4,12 @@
import { assert } from 'chai';
import * as sinon from 'sinon';
import { v4 as uuid } from 'uuid';
import { RowType } from '../../../components/ConversationList';
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper';
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation';
import { LeftPaneSearchHelper } from '../../../components/leftPane/LeftPaneSearchHelper';
import { RowType } from '../../../components/ConversationList.js';
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper.js';
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation.js';
import { LeftPaneSearchHelper } from '../../../components/leftPane/LeftPaneSearchHelper.js';
import { LeftPaneArchiveHelper } from '../../../components/leftPane/LeftPaneArchiveHelper';
import { LeftPaneArchiveHelper } from '../../../components/leftPane/LeftPaneArchiveHelper.js';
describe('LeftPaneArchiveHelper', () => {
let sandbox: sinon.SinonSandbox;

View File

@@ -4,11 +4,14 @@
import { assert } from 'chai';
import * as sinon from 'sinon';
import { times } from 'lodash';
import { RowType, _testHeaderText } from '../../../components/ConversationList';
import { ContactCheckboxDisabledReason } from '../../../components/conversationList/ContactCheckbox';
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation';
import {
RowType,
_testHeaderText,
} from '../../../components/ConversationList.js';
import { ContactCheckboxDisabledReason } from '../../../components/conversationList/ContactCheckbox.js';
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation.js';
import { LeftPaneChooseGroupMembersHelper } from '../../../components/leftPane/LeftPaneChooseGroupMembersHelper';
import { LeftPaneChooseGroupMembersHelper } from '../../../components/leftPane/LeftPaneChooseGroupMembersHelper.js';
describe('LeftPaneChooseGroupMembersHelper', () => {
const defaults = {

View File

@@ -3,14 +3,17 @@
import { assert } from 'chai';
import * as sinon from 'sinon';
import { RowType, _testHeaderText } from '../../../components/ConversationList';
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper';
import {
RowType,
_testHeaderText,
} from '../../../components/ConversationList.js';
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper.js';
import {
getDefaultConversation,
getDefaultGroupListItem,
} from '../../../test-helpers/getDefaultConversation';
} from '../../../test-helpers/getDefaultConversation.js';
import { LeftPaneComposeHelper } from '../../../components/leftPane/LeftPaneComposeHelper';
import { LeftPaneComposeHelper } from '../../../components/leftPane/LeftPaneComposeHelper.js';
describe('LeftPaneComposeHelper', () => {
let sinonSandbox: sinon.SinonSandbox;

View File

@@ -3,12 +3,15 @@
import { assert } from 'chai';
import * as sinon from 'sinon';
import { RowType, _testHeaderText } from '../../../components/ConversationList';
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper';
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation';
import {
RowType,
_testHeaderText,
} from '../../../components/ConversationList.js';
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper.js';
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation.js';
import type { LeftPaneInboxPropsType } from '../../../components/leftPane/LeftPaneInboxHelper';
import { LeftPaneInboxHelper } from '../../../components/leftPane/LeftPaneInboxHelper';
import type { LeftPaneInboxPropsType } from '../../../components/leftPane/LeftPaneInboxHelper.js';
import { LeftPaneInboxHelper } from '../../../components/leftPane/LeftPaneInboxHelper.js';
describe('LeftPaneInboxHelper', () => {
const defaultProps: LeftPaneInboxPropsType = {

View File

@@ -4,10 +4,13 @@
import { assert } from 'chai';
import * as sinon from 'sinon';
import { v4 as uuid } from 'uuid';
import { RowType, _testHeaderText } from '../../../components/ConversationList';
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation';
import {
RowType,
_testHeaderText,
} from '../../../components/ConversationList.js';
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation.js';
import { LeftPaneSearchHelper } from '../../../components/leftPane/LeftPaneSearchHelper';
import { LeftPaneSearchHelper } from '../../../components/leftPane/LeftPaneSearchHelper.js';
const baseSearchHelperArgs = {
conversationResults: { isLoading: false, results: [] },

View File

@@ -3,11 +3,14 @@
import { assert } from 'chai';
import * as sinon from 'sinon';
import { RowType, _testHeaderText } from '../../../components/ConversationList';
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation';
import { DurationInSeconds } from '../../../util/durations';
import {
RowType,
_testHeaderText,
} from '../../../components/ConversationList.js';
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation.js';
import { DurationInSeconds } from '../../../util/durations/index.js';
import { LeftPaneSetGroupMetadataHelper } from '../../../components/leftPane/LeftPaneSetGroupMetadataHelper';
import { LeftPaneSetGroupMetadataHelper } from '../../../components/leftPane/LeftPaneSetGroupMetadataHelper.js';
function getComposeState() {
return {

View File

@@ -2,11 +2,11 @@
// SPDX-License-Identifier: AGPL-3.0-only
import { assert } from 'chai';
import type { ToFindType } from '../../../components/leftPane/LeftPaneHelper';
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper';
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation';
import type { ToFindType } from '../../../components/leftPane/LeftPaneHelper.js';
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper.js';
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation.js';
import { getConversationInDirection } from '../../../components/leftPane/getConversationInDirection';
import { getConversationInDirection } from '../../../components/leftPane/getConversationInDirection.js';
describe('getConversationInDirection', () => {
const fakeConversation = (markedUnread = false) =>