forked from npm/cmd-shim
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathe2e.test.js.snap
More file actions
44 lines (38 loc) · 963 Bytes
/
e2e.test.js.snap
File metadata and controls
44 lines (38 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`create a command shim for a .exe file 1`] = `
"#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\\\,/,g')")
case \`uname\` in
*CYGWIN*|*MINGW*|*MSYS*)
if command -v cygpath > /dev/null 2>&1; then
basedir=\`cygpath -w "$basedir"\`
fi
;;
esac
"$basedir/foo" "$@"
exit $?
"
`;
exports[`create a command shim for a .exe file 2`] = `
"@SETLOCAL
@"%~dp0\\foo" %*
"
`;
exports[`create a command shim for a .exe file 3`] = `
"#!/usr/bin/env pwsh
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
$exe=""
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
# Fix case when both the Windows and Linux builds of Node
# are installed in the same directory
$exe=".exe"
}
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/foo" $args
} else {
& "$basedir/foo" $args
}
exit $LASTEXITCODE
"
`;