Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 0 additions & 67 deletions packages/build/tests/log/snapshots/tests.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,70 +57,3 @@ Generated by [AVA](https://ava.li).
commandOrigin: ui␊
node: bad option: --invalid`

## Print a warning when using an old version through Netlify CLI

> Snapshot 1

`␊
┌─────────────────────────────┐␊
│ Netlify Build │␊
└─────────────────────────────┘␊
> Version␊
@netlify/build 1.0.0␊
> Flags␊
debug: true␊
mode: cli␊
repositoryRoot: /file/path␊
testOpts:␊
oldCliLogs: 'true'␊
> Current directory␊
/file/path␊
> Config file␊
/file/path␊
> Resolved config␊
build:␊
command: doesNotExist␊
commandOrigin: config␊
> Context␊
production␊
┌────────────────────────────────────┐␊
│ 1. build.command from netlify.toml │␊
└────────────────────────────────────┘␊
$ doesNotExist␊
┌─────────────────────────────┐␊
│ "build.command" failed │␊
└─────────────────────────────┘␊
Error message␊
Command failed with exit code 127: doesNotExist␊
Error location␊
In build.command from netlify.toml:␊
doesNotExist␊
Resolved config␊
build:␊
command: doesNotExist␊
commandOrigin: config␊
bash: doesNotExist: command not found␊
╭────────────────────────────────────────────────────────╮␊
│ │␊
│ Please update netlify-cli to its latest version. │␊
│ If netlify-cli is already the latest version, │␊
│ please update your dependencies lock file instead. │␊
│ │␊
╰────────────────────────────────────────────────────────╯␊
`
Binary file modified packages/build/tests/log/snapshots/tests.js.snap
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/build/tests/log/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ test('No TTY', async t => {

// In GitHub actions, `update-notifier` is never enabled
if (!isCI) {
test('Print a warning when using an old version through Netlify CLI', async t => {
test.skip('Print a warning when using an old version through Netlify CLI', async t => {
// We need to unset some environment variables which would otherwise disable `update-notifier`
await runFixture(t, 'error', {
flags: { mode: 'cli', testOpts: { oldCliLogs: true } },
Expand Down