File: test

package info (click to toggle)
node-crc 4.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,344 kB
  • sloc: python: 3,073; xml: 632; javascript: 327; sh: 299; ansic: 227; makefile: 24
file content (17 lines) | stat: -rwxr-xr-x 416 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash -e

rm -fr ./output

$(npm bin)/webpack --mode=production

if [[ "$(node output/with-buffer.js)" != "222957957 222957957" ]]; then
  echo "👎 Webpack bundle didn't produce expected output (with-buffer.js)!"
  exit 1
fi

if [[ "$(node output/with-array.js)" != "222957957" ]]; then
  echo "👎 Webpack bundle didn't produce expected output (with-array.js)!"
  exit 1
fi

echo "👍 Webpack bundle ok!"