Skip to content

Commit cd1f4da

Browse files
committed
trying
1 parent f6718c4 commit cd1f4da

File tree

7 files changed

+6
-52
lines changed

7 files changed

+6
-52
lines changed

test/fixtures/sample/.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ out_publish
55
my-publish-dir
66
.next
77
.netlify
8-
next.config.js

test/fixtures/sample/next.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
target: 'serverless'
3+
}

test/fixtures/sample/pages/_app.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import '../styles/globals.css'
2-
31
function MyApp({ Component, pageProps }) {
42
return <Component {...pageProps} />
53
}

test/fixtures/sample/pages/index.js

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
1-
import Head from 'next/head'
2-
import styles from '../styles/Home.module.css'
3-
41
export default function Home() {
52
return (
6-
<div className={styles.container}>
7-
<Head>
8-
<title>sample</title>
9-
</Head>
10-
3+
<div>
114
<h1>random header</h1>
12-
135
</div>
146
)
157
}

test/fixtures/sample/pages/server-side.js

-14
This file was deleted.

test/fixtures/sample/pages/test.js

-24
This file was deleted.

test/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ describe('preBuild()', () => {
165165

166166
describe('onBuild()', () => {
167167
test('copy files to the publish directory', async () => {
168-
moveNextDist()
169168
await useFixture('publish_copy_files')
169+
moveNextDist()
170170
const PUBLISH_DIR = 'publish'
171171
await plugin.onBuild({
172172
constants: {
@@ -183,8 +183,8 @@ describe('onBuild()', () => {
183183
{ FUNCTIONS_SRC: 'functions', resolvedFunctions: 'functions' },
184184
{ FUNCTIONS_SRC: undefined, resolvedFunctions: 'netlify-automatic-functions' },
185185
])('copy files to the functions directory', async ({ FUNCTIONS_SRC, resolvedFunctions }) => {
186-
moveNextDist()
187186
await useFixture('functions_copy_files')
187+
moveNextDist()
188188
await plugin.onBuild({
189189
constants: {
190190
FUNCTIONS_SRC,

0 commit comments

Comments
 (0)