File: test

package info (click to toggle)
node-browser-resolve 2.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 716 kB
  • sloc: javascript: 927; makefile: 15; sh: 3
file content (22 lines) | stat: -rw-r--r-- 518 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
set -e

createlinked()
{
 (set -e; \
    mkdir -p test/fixtures/node_modules/linker/node_modules; \
    cd test/fixtures/node_modules/linker/node_modules ;\
    ln -s ../../../linked linked) || exit 1
}

AUTOPKG=${AUTOPKGTEST_TMP:-no}
if test $AUTOPKG = no; then
        node scripts/setup-symlinks.js
#        createlinked
	mocha -R spec
else
	# false*.js files test source files, then are incompatible with
	# autopkgtest
	createlinked
#	node scripts/setup-symlinks.js
	mocha -R spec `ls test/*.js|grep -v false`
fi