Skip to content

Commit 8217972

Browse files
committed
chore: fix test
1 parent 7274f81 commit 8217972

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/helpers/verification.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ exports.checkForRootPublish = ({ publish, failBuild }) => {
6060
const LAMBDA_MAX_SIZE = 1024 * 1024 * 50
6161

6262
exports.checkZipSize = async (file) => {
63+
if (!existsSync(file)) {
64+
console.warn(`Could not check zip size because ${file} does not exist`)
65+
return
66+
}
6367
const size = await promises.stat(file).then(({ size }) => size)
6468
if (size < LAMBDA_MAX_SIZE) {
6569
return

test/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,6 @@ describe('onBuild()', () => {
227227

228228
describe('onPostBuild', () => {
229229
test('saves cache with right paths', async () => {
230-
await useFixture('dist_dir_next_config')
231-
232230
const save = jest.fn()
233231

234232
await plugin.onPostBuild({

0 commit comments

Comments
 (0)