Skip to content

Commit 6df65fc

Browse files
committed
add changed tests
1 parent 7307cc4 commit 6df65fc

File tree

4 files changed

+10
-13
lines changed

4 files changed

+10
-13
lines changed
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
const empty = {};
22
const created = { foo: 1, bar: 'string' };
33

4-
// prettier-ignore
54
const created2 = {
65
foo: 1,
76
bar: 'string',
87
object: { foo: 'hello', nested: { bar: 'world' } },
9-
array: [
10-
123,
11-
'hello',
12-
{ foo: 'bar', bool: true },
13-
[456, '789']
14-
]
8+
array: [123, 'hello', { foo: 'bar', bool: true }, [456, '789']]
159
};

packages/core/tests/js/vite/add-plugin-mode/output.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ import { defineConfig } from 'vite';
77
export default defineConfig({
88
plugins: [
99
firstPlugin(),
10+
1011
// a default plugin
1112
sveltekit(),
13+
1214
middlePlugin(),
1315
lastPlugin()
1416
]

packages/core/tests/js/vite/with-satisfies/output.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,24 @@ const config = defineConfig({
1818
plugins: [
1919
// all plugins
2020
examples,
21+
2122
tailwindcss(),
2223
sveltekit(),
2324
kitRoutes(),
2425
myPlugin()
2526
],
27+
2628
resolve: { alias: { $lib, $routes, $scripts, $actions } },
27-
build: {
28-
sourcemap: true,
29-
target: 'esnext',
30-
cssMinify: 'lightningcss'
31-
},
29+
build: { sourcemap: true, target: 'esnext', cssMinify: 'lightningcss' },
30+
3231
css: {
3332
transformer: 'lightningcss',
33+
3434
lightningcss: {
3535
targets: browserslistToTargets(browserslist('defaults, not ie 11'))
3636
}
3737
},
38+
3839
experimental: { enableNativePlugin: true }
3940
}) satisfies UserConfig;
4041

packages/core/tests/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ test('integration - simple', () => {
8787
console.log("bar");
8888
8989
const foobar = "foo";
90-
const foobar2 = "test";
90+
const foobar2 = 'test';
9191
}"
9292
`);
9393
});

0 commit comments

Comments
 (0)