Skip to content

Commit

Permalink
[tests] Fix test for functions config (#9401)
Browse files Browse the repository at this point in the history
This message was recently updated in the API response

- vercel/api#17126

---------

Co-authored-by: Chris Barber <chris.barber@vercel.com>
  • Loading branch information
styfle and Chris Barber committed Feb 9, 2023
1 parent 86eb67c commit f3ef969
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/cli/test/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -2622,15 +2622,10 @@ test('next unsupported functions config shows warning link', async t => {
const fixturePath = fixture('zero-config-next-js-functions-warning');
const output = await execute([fixturePath, '--force', '--public', '--yes']);

console.log('isCanary', isCanary);
console.log(output.stderr);
console.log(output.stdout);
console.log(output.exitCode);

t.is(output.exitCode, 0, formatOutput(output));
t.regex(
output.stderr,
/Ignoring function property `runtime`\. When using Next\.js, only `memory` and `maxDuration` can be used\./gm,
/Ignoring function property `runtime`\. When using Next\.js, only `memory`, `maxDuration`, and `cron` can be used\./gm,
formatOutput(output)
);
t.regex(
Expand Down

0 comments on commit f3ef969

Please sign in to comment.