Skip to content

Commit f3b2a66

Browse files
committed
Fix CLI tests
1 parent de526ea commit f3b2a66

File tree

4 files changed

+5
-57
lines changed

4 files changed

+5
-57
lines changed

packages/snaps-cli/src/commands/sandbox/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jest.mock('./sandbox');
77

88
const getMockArgv = () => {
99
return {
10-
context: { config: getMockConfig('webpack') },
10+
context: { config: getMockConfig() },
1111
} as unknown as YargsArgs;
1212
};
1313

packages/snaps-cli/src/commands/sandbox/sandbox.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('sandboxHandler', () => {
1717
await fs.promises.writeFile('/input.js', DEFAULT_SNAP_BUNDLE);
1818

1919
jest.spyOn(console, 'log').mockImplementation();
20-
const config = getMockConfig('webpack', {
20+
const config = getMockConfig({
2121
input: '/input.js',
2222
output: {
2323
path: '/foo',
@@ -41,7 +41,7 @@ describe('sandboxHandler', () => {
4141

4242
it('does not build the Snap if the build option is `false`', async () => {
4343
jest.spyOn(console, 'log').mockImplementation();
44-
const config = getMockConfig('webpack', {
44+
const config = getMockConfig({
4545
input: '/input.js',
4646
output: {
4747
path: '/foo',

packages/snaps-cli/src/commands/sandbox/server.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('startSandbox', () => {
2020
});
2121

2222
it('starts the sandbox server', async () => {
23-
const config = getMockConfig('webpack', {
23+
const config = getMockConfig({
2424
server: {
2525
port: 8080,
2626
},

yarn.lock

Lines changed: 1 addition & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -4516,7 +4516,7 @@ __metadata:
45164516
react-dom: "npm:^19.1.0"
45174517
react-icons: "npm:^5.5.0"
45184518
typescript: "npm:~5.3.3"
4519-
vite: "npm:^6.2.5"
4519+
vite: "npm:^6.2.6"
45204520
vitest: "npm:^3.1.1"
45214521
languageName: unknown
45224522
linkType: soft
@@ -19421,58 +19421,6 @@ __metadata:
1942119421
languageName: node
1942219422
linkType: hard
1942319423

19424-
"vite@npm:^6.2.5":
19425-
version: 6.2.5
19426-
resolution: "vite@npm:6.2.5"
19427-
dependencies:
19428-
esbuild: "npm:^0.25.0"
19429-
fsevents: "npm:~2.3.3"
19430-
postcss: "npm:^8.5.3"
19431-
rollup: "npm:^4.30.1"
19432-
peerDependencies:
19433-
"@types/node": ^18.0.0 || ^20.0.0 || >=22.0.0
19434-
jiti: ">=1.21.0"
19435-
less: "*"
19436-
lightningcss: ^1.21.0
19437-
sass: "*"
19438-
sass-embedded: "*"
19439-
stylus: "*"
19440-
sugarss: "*"
19441-
terser: ^5.16.0
19442-
tsx: ^4.8.1
19443-
yaml: ^2.4.2
19444-
dependenciesMeta:
19445-
fsevents:
19446-
optional: true
19447-
peerDependenciesMeta:
19448-
"@types/node":
19449-
optional: true
19450-
jiti:
19451-
optional: true
19452-
less:
19453-
optional: true
19454-
lightningcss:
19455-
optional: true
19456-
sass:
19457-
optional: true
19458-
sass-embedded:
19459-
optional: true
19460-
stylus:
19461-
optional: true
19462-
sugarss:
19463-
optional: true
19464-
terser:
19465-
optional: true
19466-
tsx:
19467-
optional: true
19468-
yaml:
19469-
optional: true
19470-
bin:
19471-
vite: bin/vite.js
19472-
checksum: 10/354023589439e7e2bcb77af79d24cd06ce20cfc48b409e663c44e515b373b89eb8f29362223eac16a3ff080d3114e40bc5df158372279d92ad03eb270f9e9762
19473-
languageName: node
19474-
linkType: hard
19475-
1947619424
"vitest@npm:^3.1.1":
1947719425
version: 3.1.1
1947819426
resolution: "vitest@npm:3.1.1"

0 commit comments

Comments
 (0)