Redirects of the old WordPress addresses (redirects.json) #25

Merged
Sluijsens merged 3 commits from feature/asf-old-url-redirects into master 2026-11-18 23:03:46 +01:00
Showing only changes of commit 94ce5d2659 - Show all commits
+5 -1
View File
@@ -139,6 +139,7 @@ const validFiles = [
'over-mij.html',
'soorten-fotoshoots/newborn.html',
'assets/a.js',
'redirects.json',
'robots.txt',
];
async function makeDist(): Promise<string> {
@@ -157,7 +158,7 @@ describe.skipIf(toolsMissing)('check-artifact.sh', () => {
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',
async (file) => {
const dist = await makeDist();
@@ -525,6 +526,7 @@ describe.skipIf(toolsMissing || lftpMissing)('upload-production.sh', () => {
expect(first.code).toBe(0);
expect(await tree(target)).toEqual([
'assets/a.js',
'redirects.json',
'robots.txt',
'stale.txt',
]);
@@ -536,6 +538,7 @@ describe.skipIf(toolsMissing || lftpMissing)('upload-production.sh', () => {
'assets/a.js',
'index.html',
'over-mij.html',
'redirects.json',
'robots.txt',
'soorten-fotoshoots/newborn.html',
'stale.txt',
@@ -548,6 +551,7 @@ describe.skipIf(toolsMissing || lftpMissing)('upload-production.sh', () => {
'assets/a.js',
'index.html',
'over-mij.html',
'redirects.json',
'robots.txt',
'soorten-fotoshoots/newborn.html',
]);