1 | import { runTests } from './testing.js'
|
2 | import * as array from './array.test.js'
|
3 | import * as logging from './logging.test.js'
|
4 | import * as string from './string.test.js'
|
5 | import * as encoding from './encoding.test.js'
|
6 | import * as diff from './diff.test.js'
|
7 | import * as testing from './testing.test.js'
|
8 | import * as indexeddb from './indexeddb.test.js'
|
9 | import * as prng from './prng.test.js'
|
10 | import * as log from './logging.js'
|
11 | import * as statistics from './statistics.test.js'
|
12 | import * as binary from './binary.test.js'
|
13 | import * as random from './random.test.js'
|
14 | import * as promise from './promise.test.js'
|
15 | import * as queue from './queue.test.js'
|
16 | import * as map from './map.test.js'
|
17 | import * as eventloop from './eventloop.test.js'
|
18 | import * as time from './time.test.js'
|
19 | import * as pair from './pair.test.js'
|
20 | import * as object from './object.test.js'
|
21 | import * as math from './math.test.js'
|
22 | import * as number from './number.test.js'
|
23 | import * as buffer from './buffer.test.js'
|
24 | import * as set from './set.test.js'
|
25 | import * as sort from './sort.test.js'
|
26 | import * as url from './url.test.js'
|
27 | import * as metric from './metric.test.js'
|
28 | import * as func from './function.test.js'
|
29 | import * as storage from './storage.test.js'
|
30 | import * as list from './list.test.js'
|
31 | import * as cache from './cache.test.js'
|
32 |
|
33 | import { isBrowser, isNode } from './environment.js'
|
34 |
|
35 |
|
36 | if (isBrowser) {
|
37 | log.createVConsole(document.body)
|
38 | }
|
39 |
|
40 | runTests({
|
41 | array,
|
42 | logging,
|
43 | string,
|
44 | encoding,
|
45 | diff,
|
46 | testing,
|
47 | indexeddb,
|
48 | prng,
|
49 | statistics,
|
50 | binary,
|
51 | random,
|
52 | promise,
|
53 | queue,
|
54 | map,
|
55 | eventloop,
|
56 | time,
|
57 | pair,
|
58 | object,
|
59 | math,
|
60 | number,
|
61 | buffer,
|
62 | set,
|
63 | sort,
|
64 | url,
|
65 | metric,
|
66 | func,
|
67 | storage,
|
68 | list,
|
69 | cache
|
70 | }).then(success => {
|
71 |
|
72 | if (isNode) {
|
73 | process.exit(success ? 0 : 1)
|
74 | }
|
75 | })
|