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