UNPKG

2.19 kBJavaScriptView Raw
1import { runTests } from './testing.js'
2import * as array from './array.test.js'
3import * as broadcastchannel from './broadcastchannel.test.js'
4import * as crypto from './crypto.test.js'
5import * as rabin from './hash/rabin.test.js'
6import * as sha256 from './hash/sha256.test.js'
7import * as logging from './logging.test.js'
8import * as string from './string.test.js'
9import * as encoding from './encoding.test.js'
10import * as diff from './diff.test.js'
11import * as testing from './testing.test.js'
12import * as indexeddb from './indexeddb.test.js'
13import * as prng from './prng.test.js'
14import * as log from 'lib0/logging'
15import * as statistics from './statistics.test.js'
16import * as binary from './binary.test.js'
17import * as random from './random.test.js'
18import * as promise from './promise.test.js'
19import * as queue from './queue.test.js'
20import * as map from './map.test.js'
21import * as eventloop from './eventloop.test.js'
22import * as time from './time.test.js'
23import * as pair from './pair.test.js'
24import * as object from './object.test.js'
25import * as observable from './observable.test.js'
26import * as math from './math.test.js'
27import * as number from './number.test.js'
28import * as buffer from './buffer.test.js'
29import * as set from './set.test.js'
30import * as sort from './sort.test.js'
31import * as url from './url.test.js'
32import * as metric from './metric.test.js'
33import * as func from './function.test.js'
34import * as storage from './storage.test.js'
35import * as list from './list.test.js'
36import * as cache from './cache.test.js'
37import * as symbol from './symbol.test.js'
38
39import { isBrowser, isNode } from './environment.js'
40
41/* c8 ignore next */
42if (isBrowser) {
43 log.createVConsole(document.body)
44}
45
46runTests({
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 /* c8 ignore next */
84 if (isNode) {
85 process.exit(success ? 0 : 1)
86 }
87})