@@ -9,57 +9,57 @@ describeCwdTmpDir('api route file analysis', () => {
9
9
expect ( new Set ( configs . map ( ( { includedFiles, ...rest } ) => rest ) ) ) . toEqual (
10
10
new Set ( [
11
11
{
12
- functionName : " _api_og-handler" ,
12
+ functionName : ' _api_og-handler' ,
13
13
compiled : 'pages/api/og.js' ,
14
14
config : {
15
15
runtime : 'edge' ,
16
16
} ,
17
17
route : '/api/og' ,
18
18
} ,
19
19
{
20
- functionName : " _api_enterPreview-handler" ,
20
+ functionName : ' _api_enterPreview-handler' ,
21
21
compiled : 'pages/api/enterPreview.js' ,
22
22
config : { } ,
23
23
route : '/api/enterPreview' ,
24
24
} ,
25
25
{
26
- functionName : " _api_exitPreview-handler" ,
26
+ functionName : ' _api_exitPreview-handler' ,
27
27
compiled : 'pages/api/exitPreview.js' ,
28
28
config : { } ,
29
29
route : '/api/exitPreview' ,
30
30
} ,
31
31
{
32
- functionName : " _api_hello-handler" ,
32
+ functionName : ' _api_hello-handler' ,
33
33
compiled : 'pages/api/hello.js' ,
34
34
config : { } ,
35
35
route : '/api/hello' ,
36
36
} ,
37
37
{
38
- functionName : " _api_shows_params-SPLAT-handler" ,
38
+ functionName : ' _api_shows_params-SPLAT-handler' ,
39
39
compiled : 'pages/api/shows/[...params].js' ,
40
40
config : { } ,
41
41
route : '/api/shows/[...params]' ,
42
42
} ,
43
43
{
44
- functionName : " _api_shows_id-PARAM-handler" ,
44
+ functionName : ' _api_shows_id-PARAM-handler' ,
45
45
compiled : 'pages/api/shows/[id].js' ,
46
46
config : { } ,
47
47
route : '/api/shows/[id]' ,
48
48
} ,
49
49
{
50
- functionName : " _api_hello-background-background" ,
50
+ functionName : ' _api_hello-background-background' ,
51
51
compiled : 'pages/api/hello-background.js' ,
52
52
config : { type : 'experimental-background' } ,
53
53
route : '/api/hello-background' ,
54
54
} ,
55
55
{
56
- functionName : " _api_hello-scheduled-handler" ,
56
+ functionName : ' _api_hello-scheduled-handler' ,
57
57
compiled : 'pages/api/hello-scheduled.js' ,
58
58
config : { schedule : '@hourly' , type : 'experimental-scheduled' } ,
59
59
route : '/api/hello-scheduled' ,
60
60
} ,
61
61
{
62
- functionName : " _api_revalidate-handler" ,
62
+ functionName : ' _api_revalidate-handler' ,
63
63
compiled : 'pages/api/revalidate.js' ,
64
64
config : { } ,
65
65
route : '/api/revalidate' ,
@@ -75,13 +75,13 @@ describeCwdTmpDir('api route file analysis', () => {
75
75
expect ( new Set ( configs . map ( ( { includedFiles, ...rest } ) => rest ) ) ) . toEqual (
76
76
new Set ( [
77
77
{
78
- functionName : " _api_hello-background-background" ,
78
+ functionName : ' _api_hello-background-background' ,
79
79
compiled : 'pages/api/hello-background.js' ,
80
80
config : { type : 'experimental-background' } ,
81
81
route : '/api/hello-background' ,
82
82
} ,
83
83
{
84
- functionName : " _api_hello-scheduled-handler" ,
84
+ functionName : ' _api_hello-scheduled-handler' ,
85
85
compiled : 'pages/api/hello-scheduled.js' ,
86
86
config : { schedule : '@hourly' , type : 'experimental-scheduled' } ,
87
87
route : '/api/hello-scheduled' ,
0 commit comments