Skip to content

Commit 118bf14

Browse files
committed
add test
1 parent 5c12e15 commit 118bf14

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://www.robotstxt.org/robotstxt.html
2+
User-agent: *
3+
Disallow:

packages/kit/test/prerendering/options/svelte.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ const config = {
1212
}
1313
},
1414

15+
files: {
16+
assets: 'public'
17+
},
18+
1519
paths: {
1620
base: '/path-base',
1721
assets: 'https://cdn.example.com/stuff'

packages/kit/test/prerendering/options/test/test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,8 @@ test('adds CSP headers via meta tag', () => {
2727
);
2828
});
2929

30+
test('does not copy `public` into `_app`', () => {
31+
assert.ok(!fs.existsSync(`${build}/_app/robots.txt`));
32+
});
33+
3034
test.run();

0 commit comments

Comments
 (0)