UNPKG

2.31 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 indexeddbV2 from './indexeddbV2.test.js'
14import * as prng from './prng.test.js'
15import * as log from 'lib0/logging'
16import * as statistics from './statistics.test.js'
17import * as binary from './binary.test.js'
18import * as random from './random.test.js'
19import * as promise from './promise.test.js'
20import * as queue from './queue.test.js'
21import * as map from './map.test.js'
22import * as eventloop from './eventloop.test.js'
23import * as time from './time.test.js'
24import * as pair from './pair.test.js'
25import * as object from './object.test.js'
26import * as observable from './observable.test.js'
27import * as pledge from './pledge.test.js'
28import * as math from './math.test.js'
29import * as number from './number.test.js'
30import * as buffer from './buffer.test.js'
31import * as set from './set.test.js'
32import * as sort from './sort.test.js'
33import * as url from './url.test.js'
34import * as metric from './metric.test.js'
35import * as func from './function.test.js'
36import * as storage from './storage.test.js'
37import * as list from './list.test.js'
38import * as cache from './cache.test.js'
39import * as symbol from './symbol.test.js'
40
41import { isBrowser, isNode } from './environment.js'
42
43/* c8 ignore next */
44if (isBrowser) {
45 log.createVConsole(document.body)
46}
47
48runTests({
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 /* c8 ignore next */
88 if (isNode) {
89 process.exit(success ? 0 : 1)
90 }
91})