Skip to content

Commit 2c9bf64

Browse files
committed
Remove extensions
1 parent 99606f7 commit 2c9bf64

File tree

11 files changed

+31
-31
lines changed

11 files changed

+31
-31
lines changed

packages/snaps-sandbox/src/components/Request.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { ChangeEvent } from 'react';
66
import { useEffect } from 'react';
77
import { describe, it, expect, vi } from 'vitest';
88

9-
import { Request } from './Request.js';
9+
import { Request } from './Request';
1010
import { requestAtom } from '../state';
1111
import { render } from '../test-utils';
1212

packages/snaps-sandbox/src/components/Sandbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { FunctionComponent } from 'react';
44
import { Request } from './Request';
55
import { RequestButton } from './RequestButton';
66
import { Response } from './Response';
7-
import { Status } from './Status.js';
7+
import { Status } from './Status';
88

99
/**
1010
* The main component of the Snaps Sandbox.

packages/snaps-sandbox/src/components/Status.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { act } from '@testing-library/react';
22
import { createStore } from 'jotai';
33
import { describe, it, expect, vi, beforeEach } from 'vitest';
44

5-
import { Status } from './Status.js';
5+
import { Status } from './Status';
66
import { LOCAL_SNAP_ID } from '../constants';
77
import { useSnaps } from '../hooks';
88
import { settingsAtom } from '../state';
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
export * from './Editor.js';
2-
export * from './Fox.js';
3-
export * from './InstallButton.js';
4-
export * from './InstallFlaskButton.js';
5-
export * from './Providers.js';
6-
export * from './RelativeTime.js';
7-
export * from './Request.js';
8-
export * from './RequestButton.js';
9-
export * from './Response.js';
10-
export * from './Sandbox.js';
1+
export * from './Editor';
2+
export * from './Fox';
3+
export * from './InstallButton';
4+
export * from './InstallFlaskButton';
5+
export * from './Providers';
6+
export * from './RelativeTime';
7+
export * from './Request';
8+
export * from './RequestButton';
9+
export * from './Response';
10+
export * from './Sandbox';
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
export { History } from './History.js';
2-
export type { HistoryItemProps } from './HistoryItem.js';
3-
export { HistoryItem } from './HistoryItem.js';
4-
export type { HistoryItemMenuProps } from './HistoryItemMenu.js';
5-
export { HistoryItemMenu } from './HistoryItemMenu.js';
6-
export { Logo } from './Logo.js';
7-
export { Settings } from './Settings.js';
1+
export { History } from './History';
2+
export type { HistoryItemProps } from './HistoryItem';
3+
export { HistoryItem } from './HistoryItem';
4+
export type { HistoryItemMenuProps } from './HistoryItemMenu';
5+
export { HistoryItemMenu } from './HistoryItemMenu';
6+
export { Logo } from './Logo';
7+
export { Settings } from './Settings';
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export * from './useInstall.js';
2-
export * from './useRequest.js';
3-
export * from './useResponse.js';
4-
export * from './useSnaps.js';
1+
export * from './useInstall';
2+
export * from './useRequest';
3+
export * from './useResponse';
4+
export * from './useSnaps';

packages/snaps-sandbox/src/hooks/useRequest.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { describe, it, expect, vi } from 'vitest';
55

66
import { useRequest } from './useRequest';
77
import { LOCAL_SNAP_ID } from '../constants';
8-
import { historyAtom, persistedHistoryAtom, providerAtom } from '../state.js';
8+
import { historyAtom, persistedHistoryAtom, providerAtom } from '../state';
99
import { renderHook } from '../test-utils';
1010

1111
vi.stubGlobal('ethereum', {

packages/snaps-sandbox/src/main.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('main', () => {
1919
unmount: vi.fn(),
2020
});
2121

22-
await import('./main.js');
22+
await import('./main');
2323

2424
expect(spy).toHaveBeenCalled();
2525
expect(spy.mock.calls[0][0]).toBe(element);
@@ -29,7 +29,7 @@ describe('main', () => {
2929
});
3030

3131
it('throws an error if the root element is not found', async () => {
32-
await expect(async () => import('./main.js')).rejects.toThrow(
32+
await expect(async () => import('./main')).rejects.toThrow(
3333
'No root element found.',
3434
);
3535
});

packages/snaps-sandbox/src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { App } from './App';
55
import { Providers } from './components';
66

77
// eslint-disable-next-line import-x/no-unassigned-import
8-
import './editor.js';
8+
import './editor';
99

1010
// eslint-disable-next-line import-x/no-unassigned-import
1111
import './assets/fonts/fonts.css';

packages/snaps-sandbox/src/state.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import deepEqual from 'fast-deep-equal';
33
import { atom, createStore } from 'jotai';
44
import { atomWithStorage } from 'jotai/utils';
55

6-
import { SAMPLE_JSON_RPC_REQUEST } from './constants.js';
7-
import { getSnapsProvider } from './utils.js';
6+
import { SAMPLE_JSON_RPC_REQUEST } from './constants';
7+
import { getSnapsProvider } from './utils';
88

99
/**
1010
* The settings for the sandbox.

0 commit comments

Comments
 (0)