File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
import type { PrerenderManifest } from 'next/dist/build'
2
2
3
- import { NEXT_PLUGIN_NAME } from '../../packages/runtime/src/constants'
4
3
import { generateRscDataEdgeManifest } from '../../packages/runtime/src/helpers/edge'
5
4
6
- jest . mock ( '../../packages/runtime/src/helpers/functionsMetaData' , ( ) => ( {
7
- ...jest . requireActual ( '../../packages/runtime/src/helpers/functionsMetaData' ) ,
8
- getPluginVersion : async ( ) => `${ NEXT_PLUGIN_NAME } @1.0.0` ,
9
- } ) )
5
+ jest . mock ( '../../packages/runtime/src/helpers/functionsMetaData' , ( ) => {
6
+ const { NEXT_PLUGIN_NAME } = require ( '../../packages/runtime/src/constants' )
7
+ return {
8
+ ...jest . requireActual ( '../../packages/runtime/src/helpers/functionsMetaData' ) ,
9
+ getPluginVersion : async ( ) => `${ NEXT_PLUGIN_NAME } @1.0.0` ,
10
+ }
11
+ } )
10
12
11
13
const basePrerenderManifest : PrerenderManifest = {
12
14
version : 4 ,
You can’t perform that action at this time.
0 commit comments