@@ -97,58 +97,6 @@ describe('preact build', () => {
9797 expect ( await access ( file ) ) . toBeUndefined ( ) ;
9898 } ) ;
9999
100- describe ( 'Push manifest plugin' , ( ) => {
101- it ( 'should produce correct default `push-manifest.json`' , async ( ) => {
102- let dir = await create ( 'default' ) ;
103-
104- await buildFast ( dir ) ;
105- const manifest = await readFile (
106- `${ dir } /build/push-manifest.json` ,
107- 'utf8'
108- ) ;
109- expect ( manifest ) . toEqual (
110- expect . stringMatching ( getRegExpFromMarkup ( images . pushManifest ) )
111- ) ;
112- } ) ;
113-
114- it ( 'should produce correct `push-manifest.json` when expected values are missing' , async ( ) => {
115- // In this subject, there is no source CSS which means no CSS asset is output.
116- // In the past, this would result in `"undefined": { type: "style" ... }` being added to the manifest.
117- let dir = await subject ( 'custom-webpack' ) ;
118- await buildFast ( dir ) ;
119- const manifest = await readFile (
120- `${ dir } /build/push-manifest.json` ,
121- 'utf8'
122- ) ;
123- expect ( manifest ) . not . toMatch ( / " u n d e f i n e d " / ) ;
124- } ) ;
125-
126- // Issue #1675
127- it ( 'should produce correct `push-manifest.json` when user configures output filenames' , async ( ) => {
128- let dir = await subject ( 'custom-webpack' ) ;
129-
130- const config = await readFile ( `${ dir } /preact.config.js` , 'utf8' ) ;
131- await writeFile (
132- `${ dir } /preact.config.js` ,
133- config . replace (
134- "config.output.filename = '[name].js'" ,
135- "config.output.filename = 'scripts/[name].js'"
136- )
137- ) ;
138-
139- await buildFast ( dir , { prerender : false } ) ;
140- const manifest = await readFile (
141- `${ dir } /build/push-manifest.json` ,
142- 'utf8'
143- ) ;
144- expect ( manifest ) . toEqual (
145- expect . stringMatching (
146- getRegExpFromMarkup ( images . pushManifestAlteredFilenames )
147- )
148- ) ;
149- } ) ;
150- } ) ;
151-
152100 it ( 'should use a custom `.env` with prefixed environment variables' , async ( ) => {
153101 let dir = await subject ( 'custom-dotenv' ) ;
154102 await buildFast ( dir ) ;
@@ -260,22 +208,6 @@ describe('preact build', () => {
260208 ) ;
261209 } ) ;
262210
263- it ( '--preload' , async ( ) => {
264- let dir = await subject ( 'preload-chunks' ) ;
265-
266- await buildFast ( dir , { preload : true } ) ;
267- let head = await getHead ( dir ) ;
268- expect ( head ) . toEqual (
269- expect . stringMatching ( getRegExpFromMarkup ( images . preload . true ) )
270- ) ;
271-
272- await buildFast ( dir , { preload : false } ) ;
273- head = await getHead ( dir ) ;
274- expect ( head ) . toEqual (
275- expect . stringMatching ( getRegExpFromMarkup ( images . preload . false ) )
276- ) ;
277- } ) ;
278-
279211 it ( '--prerender' , async ( ) => {
280212 let dir = await subject ( 'minimal' ) ;
281213
0 commit comments