Upload tests: the valid build has redirects.json
Continuous Integration / check (pull_request) Successful in 3m55s
Continuous Integration / build-test (pull_request) Skipped
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / lighthouse (pull_request) Successful in 9m58s
Continuous Integration / deploy-production (pull_request) Skipped
Continuous Integration / check (pull_request) Successful in 3m55s
Continuous Integration / build-test (pull_request) Skipped
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / lighthouse (pull_request) Successful in 9m58s
Continuous Integration / deploy-production (pull_request) Skipped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -139,6 +139,7 @@ const validFiles = [
|
|||||||
'over-mij.html',
|
'over-mij.html',
|
||||||
'soorten-fotoshoots/newborn.html',
|
'soorten-fotoshoots/newborn.html',
|
||||||
'assets/a.js',
|
'assets/a.js',
|
||||||
|
'redirects.json',
|
||||||
'robots.txt',
|
'robots.txt',
|
||||||
];
|
];
|
||||||
async function makeDist(): Promise<string> {
|
async function makeDist(): Promise<string> {
|
||||||
@@ -157,7 +158,7 @@ describe.skipIf(toolsMissing)('check-artifact.sh', () => {
|
|||||||
expect(run.stdout).toContain('over-mij.html');
|
expect(run.stdout).toContain('over-mij.html');
|
||||||
});
|
});
|
||||||
|
|
||||||
it.each(['index.html', '404.html', 'over-mij.html'])(
|
it.each(['index.html', '404.html', 'over-mij.html', 'redirects.json'])(
|
||||||
'weigert een build zonder %s',
|
'weigert een build zonder %s',
|
||||||
async (file) => {
|
async (file) => {
|
||||||
const dist = await makeDist();
|
const dist = await makeDist();
|
||||||
@@ -525,6 +526,7 @@ describe.skipIf(toolsMissing || lftpMissing)('upload-production.sh', () => {
|
|||||||
expect(first.code).toBe(0);
|
expect(first.code).toBe(0);
|
||||||
expect(await tree(target)).toEqual([
|
expect(await tree(target)).toEqual([
|
||||||
'assets/a.js',
|
'assets/a.js',
|
||||||
|
'redirects.json',
|
||||||
'robots.txt',
|
'robots.txt',
|
||||||
'stale.txt',
|
'stale.txt',
|
||||||
]);
|
]);
|
||||||
@@ -536,6 +538,7 @@ describe.skipIf(toolsMissing || lftpMissing)('upload-production.sh', () => {
|
|||||||
'assets/a.js',
|
'assets/a.js',
|
||||||
'index.html',
|
'index.html',
|
||||||
'over-mij.html',
|
'over-mij.html',
|
||||||
|
'redirects.json',
|
||||||
'robots.txt',
|
'robots.txt',
|
||||||
'soorten-fotoshoots/newborn.html',
|
'soorten-fotoshoots/newborn.html',
|
||||||
'stale.txt',
|
'stale.txt',
|
||||||
@@ -548,6 +551,7 @@ describe.skipIf(toolsMissing || lftpMissing)('upload-production.sh', () => {
|
|||||||
'assets/a.js',
|
'assets/a.js',
|
||||||
'index.html',
|
'index.html',
|
||||||
'over-mij.html',
|
'over-mij.html',
|
||||||
|
'redirects.json',
|
||||||
'robots.txt',
|
'robots.txt',
|
||||||
'soorten-fotoshoots/newborn.html',
|
'soorten-fotoshoots/newborn.html',
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user