@@ -90,58 +90,6 @@ describe('preact build', () => {
9090 expect ( await access ( file ) ) . toBeUndefined ( ) ;
9191 } ) ;
9292
93- describe ( 'Push manifest plugin' , ( ) => {
94- it ( 'should produce correct default `push-manifest.json`' , async ( ) => {
95- let dir = await create ( 'default' ) ;
96-
97- await buildFast ( dir ) ;
98- const manifest = await readFile (
99- `${ dir } /build/push-manifest.json` ,
100- 'utf8'
101- ) ;
102- expect ( manifest ) . toEqual (
103- expect . stringMatching ( getRegExpFromMarkup ( images . pushManifest ) )
104- ) ;
105- } ) ;
106-
107- it ( 'should produce correct `push-manifest.json` when expected values are missing' , async ( ) => {
108- // In this subject, there is no source CSS which means no CSS asset is output.
109- // In the past, this would result in `"undefined": { type: "style" ... }` being added to the manifest.
110- let dir = await subject ( 'custom-webpack' ) ;
111- await buildFast ( dir ) ;
112- const manifest = await readFile (
113- `${ dir } /build/push-manifest.json` ,
114- 'utf8'
115- ) ;
116- expect ( manifest ) . not . toMatch ( / " u n d e f i n e d " / ) ;
117- } ) ;
118-
119- // Issue #1675
120- it ( 'should produce correct `push-manifest.json` when user configures output filenames' , async ( ) => {
121- let dir = await subject ( 'custom-webpack' ) ;
122-
123- const config = await readFile ( `${ dir } /preact.config.js` , 'utf8' ) ;
124- await writeFile (
125- `${ dir } /preact.config.js` ,
126- config . replace (
127- "config.output.filename = '[name].js'" ,
128- "config.output.filename = 'scripts/[name].js'"
129- )
130- ) ;
131-
132- await buildFast ( dir , { prerender : false } ) ;
133- const manifest = await readFile (
134- `${ dir } /build/push-manifest.json` ,
135- 'utf8'
136- ) ;
137- expect ( manifest ) . toEqual (
138- expect . stringMatching (
139- getRegExpFromMarkup ( images . pushManifestAlteredFilenames )
140- )
141- ) ;
142- } ) ;
143- } ) ;
144-
14593 it ( 'should use a custom `.env` with prefixed environment variables' , async ( ) => {
14694 let dir = await subject ( 'custom-dotenv' ) ;
14795 await buildFast ( dir ) ;
@@ -253,22 +201,6 @@ describe('preact build', () => {
253201 ) ;
254202 } ) ;
255203
256- it ( '--preload' , async ( ) => {
257- let dir = await subject ( 'preload-chunks' ) ;
258-
259- await buildFast ( dir , { preload : true } ) ;
260- let head = await getHead ( dir ) ;
261- expect ( head ) . toEqual (
262- expect . stringMatching ( getRegExpFromMarkup ( images . preload . true ) )
263- ) ;
264-
265- await buildFast ( dir , { preload : false } ) ;
266- head = await getHead ( dir ) ;
267- expect ( head ) . toEqual (
268- expect . stringMatching ( getRegExpFromMarkup ( images . preload . false ) )
269- ) ;
270- } ) ;
271-
272204 it ( '--prerender' , async ( ) => {
273205 let dir = await subject ( 'minimal' ) ;
274206
0 commit comments