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