Skip to content

Commit

Permalink
test: Default build test passes
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed Jan 31, 2022
1 parent c1d17d5 commit 3a2d197
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 19 deletions.
2 changes: 1 addition & 1 deletion packages/cli/tests/build.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function testMatch(received, expected) {
}

describe('preact build', () => {
it.skip(`builds the 'default' template`, async () => {
it(`builds the 'default' template`, async () => {
let dir = await create('default');

await build(dir);
Expand Down
35 changes: 19 additions & 16 deletions packages/cli/tests/images/build.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,37 @@
const common = {
'polyfills.70f66.js': 6426,
'polyfills.70f66.js.map': 21668,
'polyfills.ddfab.js': 5656,
'polyfills.ddfab.js.map': 18693,
};

exports.default = exports.full = Object.assign({}, common, {
'assets/favicon.ico': 15086,
'assets/icons/android-chrome-192x192.png': 14058,
'assets/icons/android-chrome-512x512.png': 51484,
'assets/icons/apple-touch-icon.png': 12746,
'assets/icons/favicon-16x16.png': 626,
'assets/icons/favicon-32x32.png': 1487,
'assets/icons/mstile-150x150.png': 9050,
'bundle.2da73.css': 901,
'bundle.7c9dd.js': 21429,
'bundle.7c9dd.js.map': 111801,
'assets/favicon.ico': 15086,
'ssr-build/ssr-bundle.77c49.css': 1281,
'ssr-build/ssr-bundle.77c49.css.map': 2070,
'ssr-build/ssr-bundle.js': 11090,
'ssr-build/ssr-bundle.js.map': 30625,
'bundle.17878.js': 21429,
'bundle.17878.js.map': 111801,
'bundle.9bde9.css': 945,
'bundle.9bde9.css.map': 1758,
'favicon.ico': 15086,
'index.html': 2034,
'manifest.json': 455,
'preact_prerender_data.json': 11,
'push-manifest.json': 812,
'route-home.chunk.3cec8.js': 327,
'route-home.chunk.3cec8.js.map': 483,
'route-home.chunk.bcb8a.css': 58,
'route-profile.chunk.6dd80.css': 61,
'route-profile.chunk.ddf94.js': 3514,
'route-profile.chunk.ddf94.js.map': 15454,
'ssr-build/ssr-bundle.aaacf.css': 1281,
'ssr-build/ssr-bundle.aaacf.css.map': 2070,
'ssr-build/ssr-bundle.js': 11937,
'ssr-build/ssr-bundle.js.map': 32557,
'route-home.chunk.72205.js': 327,
'route-home.chunk.72205.js.map': 483,
'route-home.chunk.f1c94.css': 112,
'route-home.chunk.f1c94.css.map': 224,
'route-profile.chunk.abefe.js': 3514,
'route-profile.chunk.abefe.js.map': 15454,
'route-profile.chunk.e0d39.css': 118,
'route-profile.chunk.e0d39.css.map': 231,
});
exports['default-esm'] = exports.full = Object.assign({}, exports.default, {
'bundle.*.esm.js': 21135,
Expand Down
3 changes: 1 addition & 2 deletions packages/cli/tests/subjects/static-root/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"private": true,
"name": "preact-prerender"
}

}

0 comments on commit 3a2d197

Please sign in to comment.