Skip to content

Commit ecb6508

Browse files
committed
test: add setup file 2
1 parent ba0d3ce commit ecb6508

File tree

6 files changed

+23
-7
lines changed

6 files changed

+23
-7
lines changed

packages/angular-rspack/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
"express": "4.21.1"
5656
},
5757
"devDependencies": {
58-
"@ng-rspack/testing-setup": "workspace:*"
58+
"@ng-rspack/testing-setup": "workspace:*",
59+
"@ng-rspack/testing-vitest-setup": "workspace:*"
5960
},
6061
"peerDependencies": {
6162
"@rspack/core": ">=1.0.5 <2.0.0",

packages/angular-rspack/src/lib/config/create-config.unit.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ describe('createConfig', () => {
4949
root: '',
5050
browser: './src/main.ts',
5151
index: './src/index.html',
52-
tsconfigPath: './tsconfig.base.json',
53-
inlineStylesExtension: 'css',
52+
tsConfig: './tsconfig.base.json',
53+
inlineStyleLanguage: 'css',
5454
polyfills: [],
5555
styles: [],
5656
assets: [],
5757
fileReplacements: [],
5858
scripts: [],
59-
jit: false,
59+
aot: true,
6060
hasServer: false,
6161
skipTypeChecking: false,
6262
};

packages/angular-rspack/src/lib/models/normalize-options.unit.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe('getHasServer', () => {
3737
).toBe(false);
3838
});
3939

40-
it('should return true if server and ssrEntry files exist', () => {
40+
it.todo('should return true if server and ssrEntry files exist', () => {
4141
expect(
4242
getHasServer({ server: 'server', ssrEntry: 'ssrEntry', root: __dirname })
4343
).toBe(true);

packages/angular-rspack/tsconfig.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@
44
"include": [],
55
"references": [
66
{
7-
"path": "../../testing/utils"
7+
"path": "../compiler"
88
},
99
{
1010
"path": "../angular-rspack-compiler"
1111
},
12+
{
13+
"path": "../../testing/utils"
14+
},
15+
{
16+
"path": "../../testing/vitest-setup"
17+
},
1218
{
1319
"path": "../../testing/setup"
1420
},

packages/angular-rspack/tsconfig.lib.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,17 @@
1818
"exclude": ["vitest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"],
1919
"references": [
2020
{
21-
"path": "../../testing/utils/tsconfig.lib.json"
21+
"path": "../compiler/tsconfig.lib.json"
2222
},
2323
{
2424
"path": "../angular-rspack-compiler/tsconfig.lib.json"
2525
},
26+
{
27+
"path": "../../testing/utils/tsconfig.lib.json"
28+
},
29+
{
30+
"path": "../../testing/vitest-setup/tsconfig.lib.json"
31+
},
2632
{
2733
"path": "../../testing/setup/tsconfig.lib.json"
2834
}

pnpm-lock.yaml

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)