Skip to content

Commit 210de56

Browse files
committed
test: add initial (failing) build tests for Angular 19 fixtures
1 parent 3ac2776 commit 210de56

File tree

4 files changed

+46
-0
lines changed

4 files changed

+46
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[build]
2+
command="npm run build"
3+
ignore="exit 1" ## always build, there might be changes in the plugin
4+
5+
[[plugins]]
6+
package="@netlify/angular-runtime"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[build]
2+
command="npm run build"
3+
ignore="exit 1" ## always build, there might be changes in the plugin
4+
5+
[[plugins]]
6+
package="@netlify/angular-runtime"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[build]
2+
command="npm run build"
3+
ignore="exit 1" ## always build, there might be changes in the plugin
4+
5+
[[plugins]]
6+
package="@netlify/angular-runtime"

tests/integration.test.mjs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,34 @@ test('doesnt fail if prerender-routes.json file is missing', async () => {
6666
assert.deepEqual(success, true)
6767
})
6868

69+
test('doesnt fail if prerender-routes.json file is missing (Angular 19)', async () => {
70+
const { success } = await build({
71+
repositoryRoot: fileURLToPath(new URL('fixtures/angular-19-prerender-false', import.meta.url)),
72+
buffer: true,
73+
})
74+
assert.deepEqual(success, true)
75+
})
76+
77+
// TODO: Make this work
78+
test('Angular 19 using CommonEngine', async () => {
79+
const { severityCode, success } = await build({
80+
repositoryRoot: fileURLToPath(new URL('fixtures/angular-19-common-engine', import.meta.url)),
81+
})
82+
83+
assert.deepEqual(severityCode, 0)
84+
assert.deepEqual(success, true)
85+
})
86+
87+
// TODO: Make this work
88+
test('Angular 19 using App Engine (Developer Preview)', async () => {
89+
const { severityCode, success } = await build({
90+
repositoryRoot: fileURLToPath(new URL('fixtures/angular-19-common-engine', import.meta.url)),
91+
})
92+
93+
assert.deepEqual(severityCode, 0)
94+
assert.deepEqual(success, true)
95+
})
96+
6997
test('checks version for angular 19', async () => {
7098
const result = await validateAngularVersion('tests/fixtures/angular-19-common-engine')
7199
assert.strictEqual(result, true)

0 commit comments

Comments
 (0)