@camperaid/watest 2.4.6 → 2.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/.prettierrc.js +1 -3
  2. package/.watestrc.js +1 -3
  3. package/bin/watest.js +3 -8
  4. package/core/base.js +79 -56
  5. package/core/core.js +25 -45
  6. package/core/format.js +96 -56
  7. package/core/process_args.js +1 -5
  8. package/core/series.js +60 -56
  9. package/core/settings.js +27 -32
  10. package/core/spawn.js +14 -21
  11. package/core/util.js +12 -19
  12. package/eslint.config.js +27 -0
  13. package/index.js +15 -17
  14. package/interfaces/logger.js +1 -3
  15. package/interfaces/servicer.js +1 -3
  16. package/logging/filestream.js +3 -7
  17. package/logging/logging.js +5 -11
  18. package/logging/logpipe.js +21 -21
  19. package/package.json +12 -11
  20. package/tests/base/t_api.js +3 -6
  21. package/tests/base/t_contains.js +12 -12
  22. package/tests/base/t_core.js +11 -8
  23. package/tests/base/t_format.js +13 -14
  24. package/tests/base/t_is.js +9 -11
  25. package/tests/base/t_is_object.js +23 -25
  26. package/tests/base/t_is_primitive.js +12 -14
  27. package/tests/base/t_is_string.js +6 -8
  28. package/tests/base/t_ok.js +4 -6
  29. package/tests/base/t_stringify.js +6 -8
  30. package/tests/base/t_test_.js +3 -5
  31. package/tests/base/t_throws.js +73 -0
  32. package/tests/base/test.js +8 -18
  33. package/tests/e2e/samples/{loader/.watestrc.cjs → folder/.watestrc.js} +1 -1
  34. package/tests/e2e/samples/folder/package-lock.json +1019 -5940
  35. package/tests/e2e/samples/folder/package.json +3 -2
  36. package/tests/e2e/samples/folder/tests/meta.js +1 -1
  37. package/tests/e2e/samples/folder/tests/unit/t_test.js +3 -3
  38. package/tests/e2e/samples/{loader_mixed/.watestrc.cjs → loader/.watestrc.js} +1 -1
  39. package/tests/e2e/samples/loader/package-lock.json +1751 -28
  40. package/tests/e2e/samples/loader/package.json +2 -2
  41. package/tests/e2e/samples/{folder/.watestrc.cjs → loader_mixed/.watestrc.js} +1 -1
  42. package/tests/e2e/samples/loader_mixed/package-lock.json +1751 -28
  43. package/tests/e2e/samples/loader_multiple/{.watestrc.cjs → .watestrc.js} +1 -1
  44. package/tests/e2e/samples/loader_multiple/package-lock.json +1751 -28
  45. package/tests/e2e/samples/loader_multiple/package.json +2 -2
  46. package/tests/e2e/samples/single/.watestrc.js +5 -0
  47. package/tests/e2e/samples/single/package-lock.json +1017 -5938
  48. package/tests/e2e/samples/single/package.json +5 -2
  49. package/tests/e2e/samples/wd_mixed/{.watestrc.cjs → .watestrc.js} +1 -1
  50. package/tests/e2e/samples/wd_mixed/package-lock.json +779 -4862
  51. package/tests/e2e/samples/wd_mixed/package.json +2 -2
  52. package/tests/e2e/samples/wd_single/{.watestrc.cjs → .watestrc.js} +1 -1
  53. package/tests/e2e/samples/wd_single/package-lock.json +779 -4862
  54. package/tests/e2e/samples/wd_single/package.json +2 -2
  55. package/tests/e2e/t_folder.js +4 -6
  56. package/tests/e2e/t_loader.js +4 -6
  57. package/tests/e2e/t_loader_mixed.js +4 -6
  58. package/tests/e2e/t_loader_multiple.js +4 -6
  59. package/tests/e2e/t_loader_multiple_patterns.js +4 -6
  60. package/tests/e2e/t_single.js +4 -6
  61. package/tests/e2e/t_wd_firefox.js +4 -6
  62. package/tests/e2e/t_wd_firefox_chrome.js +4 -6
  63. package/tests/e2e/t_wd_firefox_chrome_pattern.js +4 -6
  64. package/tests/e2e/t_wd_mixed_firefox.js +4 -6
  65. package/tests/e2e/t_wd_mixed_firefox_chrome.js +4 -6
  66. package/tests/e2e/test.js +15 -16
  67. package/tests/meta.js +1 -3
  68. package/tests/series/build/t_adjust_names.js +4 -6
  69. package/tests/series/build/t_adjust_names_webdriver.js +6 -10
  70. package/tests/series/build/t_expected_failures.js +4 -6
  71. package/tests/series/build/t_loader.js +4 -6
  72. package/tests/series/build/t_loader_mixed.js +4 -6
  73. package/tests/series/build/t_mixed.js +4 -6
  74. package/tests/series/build/t_nested.js +4 -6
  75. package/tests/series/build/t_patterns_loader.js +4 -6
  76. package/tests/series/build/t_patterns_webdriver.js +4 -6
  77. package/tests/series/build/t_webdriver.js +4 -6
  78. package/tests/series/build/t_webdriver_firefox_mixed.js +4 -6
  79. package/tests/series/build/t_webdriver_nested.js +4 -6
  80. package/tests/series/build/t_webdriver_services.js +4 -6
  81. package/tests/series/generic/t_failures_info.js +9 -12
  82. package/tests/series/logging/t_failures.js +18 -20
  83. package/tests/series/logging/t_success.js +15 -17
  84. package/tests/series/logging/t_verify.js +17 -14
  85. package/tests/series/meta.js +1 -3
  86. package/tests/series/mock_series.js +7 -13
  87. package/tests/series/perform/t_failure.js +4 -6
  88. package/tests/series/perform/t_failure_notest.js +4 -6
  89. package/tests/series/perform/t_intermittent.js +5 -7
  90. package/tests/series/perform/t_intermittent_global.js +4 -6
  91. package/tests/series/perform/t_missing_perma.js +5 -7
  92. package/tests/series/perform/t_nested.js +4 -10
  93. package/tests/series/perform/t_perma.js +4 -6
  94. package/tests/series/perform/t_success.js +5 -11
  95. package/tests/series/run/t_debunk_failure.js +7 -6
  96. package/tests/series/run/t_debunk_success.js +7 -6
  97. package/tests/series/run/t_nested.js +7 -6
  98. package/tests/series/run/t_verify.js +7 -6
  99. package/tests/series/run/t_verify_webdriver.js +7 -6
  100. package/tests/series/test.js +29 -40
  101. package/tests/webdriver/meta.js +1 -3
  102. package/tests/webdriver/t_app_driver.js +3 -5
  103. package/tests/webdriver/t_app_driver_selectors.js +3 -5
  104. package/tests/webdriver/t_attribute.js +5 -7
  105. package/tests/webdriver/t_attribute_all.js +6 -8
  106. package/tests/webdriver/t_doubleclick.js +3 -5
  107. package/tests/webdriver/t_doubleclickat.js +3 -5
  108. package/tests/webdriver/t_execute.js +4 -6
  109. package/tests/webdriver/t_if_has_elements.js +6 -8
  110. package/tests/webdriver/t_if_no_elements.js +6 -8
  111. package/tests/webdriver/t_no_elements_or_not_visible.js +7 -9
  112. package/tests/webdriver/t_properties.js +11 -13
  113. package/tests/webdriver/t_script.js +8 -10
  114. package/tests/webdriver/t_select_all.js +6 -11
  115. package/tests/webdriver/t_selection.js +4 -6
  116. package/tests/webdriver/t_text.js +12 -14
  117. package/tests/webdriver/t_text_all.js +6 -8
  118. package/tests/webdriver/test.js +32 -41
  119. package/webdriver/app_driver.js +15 -19
  120. package/webdriver/control_driver.js +4 -8
  121. package/webdriver/driver.js +58 -61
  122. package/webdriver/driver_base.js +50 -60
  123. package/webdriver/session.js +6 -11
  124. package/webdriver/util.js +7 -8
  125. package/.eslintrc.js +0 -45
  126. package/index.mjs +0 -5
  127. package/tests/e2e/samples/folder/node_modules/.package-lock.json +0 -3871
  128. package/tests/e2e/samples/loader/node_modules/.package-lock.json +0 -36
  129. package/tests/e2e/samples/loader_mixed/node_modules/.package-lock.json +0 -36
  130. package/tests/e2e/samples/loader_multiple/node_modules/.package-lock.json +0 -36
  131. package/tests/e2e/samples/single/.watestrc.cjs +0 -5
  132. package/tests/e2e/samples/single/node_modules/.package-lock.json +0 -3871
  133. package/tests/e2e/samples/wd_mixed/node_modules/.package-lock.json +0 -3586
  134. package/tests/e2e/samples/wd_single/node_modules/.package-lock.json +0 -3586
@@ -1,24 +1,22 @@
1
- 'use strict';
2
-
3
- const {
1
+ import {
4
2
  completed_checkers,
5
3
  MockSeries,
6
4
  createMockLogPipe,
7
5
  format_completed,
8
- format_failure,
9
6
  format_failures,
10
7
  format_ok,
11
8
  format_started,
12
9
  format_success,
10
+ stderr_format_failure,
13
11
  is,
14
12
  success,
15
13
  fail,
16
14
  running_checker,
17
- } = require('../test.js');
15
+ } from '../test.js';
18
16
 
19
- const { invocation } = require('../../../core/settings.js');
17
+ import settings from '../../../core/settings.js';
20
18
 
21
- module.exports.test = async () => {
19
+ export async function test() {
22
20
  const ts = {
23
21
  'tests': {
24
22
  meta: {
@@ -58,7 +56,7 @@ module.exports.test = async () => {
58
56
 
59
57
  const buffers = new Map(LogPipe.FileStream.getLoggingBuffers());
60
58
 
61
- let path = `${invocation}`;
59
+ let path = `${settings.invocation}`;
62
60
  is(
63
61
  buffers.get(`${path}/log`),
64
62
  [
@@ -67,10 +65,10 @@ module.exports.test = async () => {
67
65
  format_failures(1, 1),
68
66
  format_completed(`${path}/`),
69
67
  ],
70
- `logging buffer for ${path}`
68
+ `logging buffer #1 for ${path}`,
71
69
  );
72
70
 
73
- path = `${invocation}/unit`;
71
+ path = `${settings.invocation}/unit`;
74
72
  is(
75
73
  buffers.get(`${path}/log`),
76
74
  [
@@ -79,17 +77,17 @@ module.exports.test = async () => {
79
77
  format_failures(1, 1, path),
80
78
  format_completed(path),
81
79
  ],
82
- `logging buffer for ${path}`
80
+ `logging buffer #2 for ${path}`,
83
81
  );
84
82
 
85
- path = `${invocation}/unit/base`;
83
+ path = `${settings.invocation}/unit/base`;
86
84
  is(
87
85
  buffers.get(`${path}/log`),
88
86
  [
89
87
  format_started(path),
90
88
  running_checker(
91
89
  `${path}/t_testo.js`,
92
- `tests/unit/base/t_testo.js`
90
+ `tests/unit/base/t_testo.js`,
93
91
  ).trim(),
94
92
  format_ok('Testo'),
95
93
  ...completed_checkers({
@@ -98,20 +96,20 @@ module.exports.test = async () => {
98
96
  format_success(1, path),
99
97
  format_completed(path),
100
98
  ],
101
- `logging buffer for ${path}`
99
+ `logging buffer #3 for ${path}`,
102
100
  );
103
101
 
104
- path = `${invocation}/unit/core`;
102
+ path = `${settings.invocation}/unit/core`;
105
103
  is(
106
104
  buffers.get(`${path}/log`),
107
105
  [
108
106
  format_started(path),
109
107
  running_checker(
110
108
  `${path}/t_presto.js`,
111
- `tests/unit/core/t_presto.js`
109
+ `tests/unit/core/t_presto.js`,
112
110
  ).trim(),
113
- format_failure('Presto'),
114
- format_failure(`has 1 failure(s)`, `>${path}/t_presto.js`),
111
+ stderr_format_failure('Presto'),
112
+ stderr_format_failure(`has 1 failure(s)`, `>${path}/t_presto.js`),
115
113
  ...completed_checkers({
116
114
  name: `${path}/t_presto.js`,
117
115
  }).filter(l => l),
@@ -119,6 +117,6 @@ module.exports.test = async () => {
119
117
  format_failures(1, 0, path),
120
118
  format_completed(path),
121
119
  ],
122
- `logging buffer for ${path}/log`
120
+ `logging buffer #4 for ${path}/log`,
123
121
  );
124
- };
122
+ }
@@ -1,6 +1,4 @@
1
- 'use strict';
2
-
3
- const {
1
+ import {
4
2
  completed_checkers,
5
3
  MockSeries,
6
4
  createMockLogPipe,
@@ -11,11 +9,11 @@ const {
11
9
  is,
12
10
  success,
13
11
  running_checker,
14
- } = require('../test.js');
12
+ } from '../test.js';
15
13
 
16
- const { invocation } = require('../../../core/settings.js');
14
+ import settings from '../../../core/settings.js';
17
15
 
18
- module.exports.test = async () => {
16
+ export async function test() {
19
17
  const ts = {
20
18
  'tests': {
21
19
  meta: {
@@ -55,7 +53,7 @@ module.exports.test = async () => {
55
53
 
56
54
  const buffers = new Map(LogPipe.FileStream.getLoggingBuffers());
57
55
 
58
- let path = `${invocation}`;
56
+ let path = `${settings.invocation}`;
59
57
  is(
60
58
  buffers.get(`${path}/log`),
61
59
  [
@@ -63,24 +61,24 @@ module.exports.test = async () => {
63
61
  format_success(2),
64
62
  format_completed(`${path}/`),
65
63
  ],
66
- `logging buffer for ${path}`
64
+ `logging buffer for ${path}`,
67
65
  );
68
66
 
69
- path = `${invocation}/unit`;
67
+ path = `${settings.invocation}/unit`;
70
68
  is(
71
69
  buffers.get(`${path}/log`),
72
70
  [format_started(path), format_success(2, path), format_completed(path)],
73
- `logging buffer for ${path}`
71
+ `logging buffer for ${path}`,
74
72
  );
75
73
 
76
- path = `${invocation}/unit/base`;
74
+ path = `${settings.invocation}/unit/base`;
77
75
  is(
78
76
  buffers.get(`${path}/log`),
79
77
  [
80
78
  format_started(path),
81
79
  running_checker(
82
80
  `${path}/t_testo.js`,
83
- `tests/unit/base/t_testo.js`
81
+ `tests/unit/base/t_testo.js`,
84
82
  ).trim(),
85
83
  format_ok('Testo'),
86
84
  ...completed_checkers({
@@ -89,17 +87,17 @@ module.exports.test = async () => {
89
87
  format_success(1, path),
90
88
  format_completed(path),
91
89
  ],
92
- `logging buffer for ${path}`
90
+ `logging buffer for ${path}`,
93
91
  );
94
92
 
95
- path = `${invocation}/unit/core`;
93
+ path = `${settings.invocation}/unit/core`;
96
94
  is(
97
95
  buffers.get(`${path}/log`),
98
96
  [
99
97
  format_started(path),
100
98
  running_checker(
101
99
  `${path}/t_presto.js`,
102
- `tests/unit/core/t_presto.js`
100
+ `tests/unit/core/t_presto.js`,
103
101
  ).trim(),
104
102
  format_ok('Presto'),
105
103
  ...completed_checkers({
@@ -108,6 +106,6 @@ module.exports.test = async () => {
108
106
  format_success(1, path),
109
107
  format_completed(path),
110
108
  ],
111
- `logging buffer for ${path}/log`
109
+ `logging buffer for ${path}/log`,
112
110
  );
113
- };
111
+ }
@@ -1,18 +1,18 @@
1
- 'use strict';
2
-
3
- const {
1
+ import {
4
2
  MockSeries,
5
3
  createMockLogPipe,
6
4
  fail,
7
5
  is,
6
+ stderr_format_failure,
8
7
  success,
9
- } = require('../test.js');
10
-
11
- const { webdrivers } = require('../../../core/settings.js');
8
+ } from '../test.js';
9
+ import settings from '../../../core/settings.js';
12
10
 
13
11
  const completed_in = name => got => got.startsWith(`>${name} completed in`);
14
12
 
15
- module.exports.test = async () => {
13
+ export async function test() {
14
+ const { webdrivers } = settings;
15
+
16
16
  let failed = false;
17
17
  const ts = {
18
18
  'tests': {
@@ -79,10 +79,13 @@ module.exports.test = async () => {
79
79
  [
80
80
  '\x1B[38;5;99mStarted\x1B[0m mac/webdriver/chrome/end-to-end/history',
81
81
  '!Running: mac/webdriver/chrome/end-to-end/history/t_history.js, path: tests/webdriver/end-to-end/history/t_history.js',
82
- '\x1B[31mFailed:\x1B[0m TestoFail',
83
- '\x1B[31m>mac/webdriver/chrome/end-to-end/history/t_history.js\x1B[0m has 1 failure(s)',
82
+ stderr_format_failure('TestoFail'),
83
+ stderr_format_failure(
84
+ 'has 1 failure(s)',
85
+ '>mac/webdriver/chrome/end-to-end/history/t_history.js',
86
+ ),
84
87
  completed_in(
85
- 'mac/webdriver/chrome/end-to-end/history/t_history.js'
88
+ 'mac/webdriver/chrome/end-to-end/history/t_history.js',
86
89
  ),
87
90
  '\x1B[41m\x1B[37m>mac/webdriver/chrome/end-to-end/history/t_history.js\x1B[0m Failure count: 1',
88
91
  '\x1B[41m\x1B[37mmac/webdriver/chrome/end-to-end/history > failed\x1B[0m Passed: 0. Failed: 1',
@@ -96,7 +99,7 @@ module.exports.test = async () => {
96
99
  '!Running: mac/webdriver/chrome/end-to-end/history2/t_history.js, path: tests/webdriver/end-to-end/history/t_history.js',
97
100
  '\x1B[32mOk:\x1B[0m TestoOk',
98
101
  completed_in(
99
- 'mac/webdriver/chrome/end-to-end/history2/t_history.js'
102
+ 'mac/webdriver/chrome/end-to-end/history2/t_history.js',
100
103
  ),
101
104
  '\x1B[102mmac/webdriver/chrome/end-to-end/history2\x1B[0m Total: 1',
102
105
  '\x1B[38;5;243mCompleted\x1B[0m mac/webdriver/chrome/end-to-end/history2',
@@ -130,7 +133,7 @@ module.exports.test = async () => {
130
133
  '!Running: mac/webdriver/firefox/end-to-end/history/t_history.js, path: tests/webdriver/end-to-end/history/t_history.js',
131
134
  '\x1B[32mOk:\x1B[0m TestoOk',
132
135
  completed_in(
133
- 'mac/webdriver/firefox/end-to-end/history/t_history.js'
136
+ 'mac/webdriver/firefox/end-to-end/history/t_history.js',
134
137
  ),
135
138
  '\x1B[102mmac/webdriver/firefox/end-to-end/history\x1B[0m Total: 1',
136
139
  '\x1B[38;5;243mCompleted\x1B[0m mac/webdriver/firefox/end-to-end/history',
@@ -163,6 +166,6 @@ module.exports.test = async () => {
163
166
  ...chromeLogs,
164
167
  ...firefoxLogs,
165
168
  ],
166
- 'logging verify'
169
+ 'logging verify',
167
170
  );
168
- };
171
+ }
@@ -1,6 +1,4 @@
1
- 'use strict';
2
-
3
- module.exports.folders = [
1
+ export var folders = [
4
2
  'generic',
5
3
  'build',
6
4
  'perform',
@@ -1,10 +1,7 @@
1
- 'use strict';
2
-
3
- const path = require('path');
4
-
5
- const { Core } = require('../../core/core.js');
6
- const { LogPipe } = require('../../logging/logpipe.js');
7
- const { Series } = require('../../core/series.js');
1
+ import path from 'path';
2
+ import { Core } from '../../core/core.js';
3
+ import { LogPipe } from '../../logging/logpipe.js';
4
+ import { Series } from '../../core/series.js';
8
5
 
9
6
  /**
10
7
  * Mock file stream constructor, writes to a string buffer.
@@ -85,8 +82,8 @@ class MockSeries extends Series {
85
82
  {
86
83
  core: new Core(),
87
84
  },
88
- options
89
- )
85
+ options,
86
+ ),
90
87
  );
91
88
  this.ts = options.ts;
92
89
  }
@@ -106,7 +103,4 @@ class MockSeries extends Series {
106
103
  }
107
104
  }
108
105
 
109
- module.exports = {
110
- createMockLogPipe,
111
- MockSeries,
112
- };
106
+ export { createMockLogPipe, MockSeries };
@@ -1,8 +1,6 @@
1
- 'use strict';
1
+ import { fail, is_test_output, make_perform_function } from '../test.js';
2
2
 
3
- const { fail, is_test_output, make_perform_function } = require('../test.js');
4
-
5
- module.exports.test = async () => {
3
+ export async function test() {
6
4
  const failures = [
7
5
  [
8
6
  't_testo.js',
@@ -43,6 +41,6 @@ module.exports.test = async () => {
43
41
  ]),
44
42
  expected_stdout,
45
43
  expected_stderr,
46
- 'fail'
44
+ 'fail',
47
45
  );
48
- };
46
+ }
@@ -1,8 +1,6 @@
1
- 'use strict';
1
+ import { is_test_output, make_perform_function } from '../test.js';
2
2
 
3
- const { is_test_output, make_perform_function } = require('../test.js');
4
-
5
- module.exports.test = async () => {
3
+ export async function test() {
6
4
  // fail
7
5
  await is_test_output(
8
6
  make_perform_function([
@@ -23,6 +21,6 @@ module.exports.test = async () => {
23
21
  '\x1B[31mFailed:\x1B[0m Neighter failure nor success in t_testo.js',
24
22
  '\x1B[31m>t_testo.js\x1B[0m has 1 failure(s)',
25
23
  ],
26
- 'fail'
24
+ 'fail',
27
25
  );
28
- };
26
+ }
@@ -1,8 +1,6 @@
1
- 'use strict';
1
+ import { fail, make_perform_function, is_test_output } from '../test.js';
2
2
 
3
- const { fail, make_perform_function, is_test_output } = require('../test.js');
4
-
5
- module.exports.test = async () => {
3
+ export async function test() {
6
4
  // intermittent
7
5
  let failures = [
8
6
  [
@@ -44,7 +42,7 @@ module.exports.test = async () => {
44
42
  ]),
45
43
  expected_stdout,
46
44
  expected_stderr,
47
- 'intermittent'
45
+ 'intermittent',
48
46
  );
49
47
 
50
48
  // generic intermittent
@@ -105,6 +103,6 @@ module.exports.test = async () => {
105
103
  ]),
106
104
  expected_stdout,
107
105
  expected_stderr,
108
- 'generic intermittent'
106
+ 'generic intermittent',
109
107
  );
110
- };
108
+ }
@@ -1,8 +1,6 @@
1
- 'use strict';
1
+ import { is_test_output, make_perform_function, fail } from '../test.js';
2
2
 
3
- const { is_test_output, make_perform_function, fail } = require('../test.js');
4
-
5
- module.exports.test = async () => {
3
+ export async function test() {
6
4
  let failures = [
7
5
  [
8
6
  '**',
@@ -75,6 +73,6 @@ module.exports.test = async () => {
75
73
  '\x1B[38;5;243mCompleted\x1B[0m tests/',
76
74
  ],
77
75
  [],
78
- 'global intermittents'
76
+ 'global intermittents',
79
77
  );
80
- };
78
+ }
@@ -1,8 +1,6 @@
1
- 'use strict';
1
+ import { fail, make_perform_function, is_test_output } from '../test.js';
2
2
 
3
- const { fail, make_perform_function, is_test_output } = require('../test.js');
4
-
5
- module.exports.test = async () => {
3
+ export async function test() {
6
4
  // missing perma
7
5
  let failures = [
8
6
  [
@@ -41,7 +39,7 @@ module.exports.test = async () => {
41
39
  "\x1B[31mFailed:\x1B[0m Perma failure 'Server terminates connection' has never been hit",
42
40
  '\x1B[31m>t_testo.js\x1B[0m has 2 failure(s)',
43
41
  ],
44
- 'missing perma'
42
+ 'missing perma',
45
43
  );
46
44
 
47
45
  // no perma but intermittent
@@ -83,6 +81,6 @@ module.exports.test = async () => {
83
81
  '\x1B[38;5;243mCompleted\x1B[0m tests/',
84
82
  ],
85
83
  [],
86
- 'no perma but intermittent'
84
+ 'no perma but intermittent',
87
85
  );
88
- };
86
+ }
@@ -1,12 +1,6 @@
1
- 'use strict';
1
+ import { is_test_output, make_perform_function, success } from '../test.js';
2
2
 
3
- const {
4
- is_test_output,
5
- make_perform_function,
6
- success,
7
- } = require('../test.js');
8
-
9
- module.exports.test = async () => {
3
+ export async function test() {
10
4
  await is_test_output(
11
5
  make_perform_function([
12
6
  {
@@ -58,6 +52,6 @@ module.exports.test = async () => {
58
52
  '\x1B[38;5;243mCompleted\x1B[0m tests/',
59
53
  ],
60
54
  [],
61
- 'nested'
55
+ 'nested',
62
56
  );
63
- };
57
+ }
@@ -1,8 +1,6 @@
1
- 'use strict';
1
+ import { fail, is_test_output, make_perform_function } from '../test.js';
2
2
 
3
- const { fail, is_test_output, make_perform_function } = require('../test.js');
4
-
5
- module.exports.test = async () => {
3
+ export async function test() {
6
4
  const failures = [
7
5
  [
8
6
  't_testo.js',
@@ -40,6 +38,6 @@ module.exports.test = async () => {
40
38
  '\x1B[38;5;243mCompleted\x1B[0m tests/',
41
39
  ],
42
40
  [],
43
- 'perma'
41
+ 'perma',
44
42
  );
45
- };
43
+ }
@@ -1,12 +1,6 @@
1
- 'use strict';
1
+ import { is_test_output, make_perform_function, success } from '../test.js';
2
2
 
3
- const {
4
- is_test_output,
5
- make_perform_function,
6
- success,
7
- } = require('../test.js');
8
-
9
- module.exports.test = async () => {
3
+ export async function test() {
10
4
  // success
11
5
  await is_test_output(
12
6
  make_perform_function([
@@ -26,7 +20,7 @@ module.exports.test = async () => {
26
20
  '\x1B[38;5;243mCompleted\x1B[0m tests/',
27
21
  ],
28
22
  [],
29
- 'success'
23
+ 'success',
30
24
  );
31
25
 
32
26
  // success: unmatched expected failures
@@ -61,6 +55,6 @@ module.exports.test = async () => {
61
55
  '\x1B[38;5;243mCompleted\x1B[0m tests/',
62
56
  ],
63
57
  [],
64
- 'success #2'
58
+ 'success #2',
65
59
  );
66
- };
60
+ }
@@ -1,8 +1,6 @@
1
- 'use strict';
1
+ import { is_test_output, MockSeries, fail } from '../test.js';
2
2
 
3
- const { is_test_output, MockSeries, fail } = require('../test.js');
4
-
5
- module.exports.test = async () => {
3
+ export async function test() {
6
4
  const ts = {
7
5
  'tests': {
8
6
  meta: {
@@ -20,6 +18,9 @@ module.exports.test = async () => {
20
18
  };
21
19
 
22
20
  const expected_stdout = [
21
+ 'Settings: no temporary storage dir',
22
+ 'Settings: logging into /tmp',
23
+ 'Settings: chrome webdrivers',
23
24
  '\x1B[38;5;99mStarted\x1B[0m mac/',
24
25
  '\x1B[38;5;99mStarted\x1B[0m mac/unit',
25
26
  '!Running: mac/unit/t_testo.js, path: tests/unit/t_testo.js',
@@ -44,6 +45,6 @@ module.exports.test = async () => {
44
45
  () => MockSeries.run([], { ts, debunk: true }),
45
46
  expected_stdout,
46
47
  expected_stderr,
47
- 'debunk failure'
48
+ 'debunk failure',
48
49
  );
49
- };
50
+ }
@@ -1,8 +1,6 @@
1
- 'use strict';
1
+ import { is_test_output, MockSeries, success } from '../test.js';
2
2
 
3
- const { is_test_output, MockSeries, success } = require('../test.js');
4
-
5
- module.exports.test = async () => {
3
+ export async function test() {
6
4
  const ts = {
7
5
  'tests': {
8
6
  meta: {
@@ -33,6 +31,9 @@ module.exports.test = async () => {
33
31
  ];
34
32
 
35
33
  const expected_stdout = [
34
+ 'Settings: no temporary storage dir',
35
+ 'Settings: logging into /tmp',
36
+ 'Settings: chrome webdrivers',
36
37
  ...expected_out_for_success,
37
38
  ...expected_out_for_success,
38
39
  ...expected_out_for_success,
@@ -50,6 +51,6 @@ module.exports.test = async () => {
50
51
  () => MockSeries.run([], { ts, debunk: true }),
51
52
  expected_stdout,
52
53
  expected_stderr,
53
- 'debunk success'
54
+ 'debunk success',
54
55
  );
55
- };
56
+ }
@@ -1,8 +1,6 @@
1
- 'use strict';
1
+ import { is_test_output, MockSeries, success } from '../test.js';
2
2
 
3
- const { is_test_output, MockSeries, success } = require('../test.js');
4
-
5
- module.exports.test = async () => {
3
+ export async function test() {
6
4
  const ts = {
7
5
  'tests': {
8
6
  meta: {
@@ -35,6 +33,9 @@ module.exports.test = async () => {
35
33
  await is_test_output(
36
34
  () => MockSeries.run([], { ts }),
37
35
  [
36
+ 'Settings: no temporary storage dir',
37
+ 'Settings: logging into /tmp',
38
+ 'Settings: chrome webdrivers',
38
39
  '\x1B[38;5;99mStarted\x1B[0m mac/',
39
40
  '\x1B[38;5;99mStarted\x1B[0m mac/unit',
40
41
  '\x1B[38;5;99mStarted\x1B[0m mac/unit/base',
@@ -59,6 +60,6 @@ module.exports.test = async () => {
59
60
  'Logs are written to',
60
61
  ],
61
62
  [],
62
- 'nested'
63
+ 'nested',
63
64
  );
64
- };
65
+ }
@@ -1,8 +1,6 @@
1
- 'use strict';
1
+ import { fail, is_test_output, MockSeries, success } from '../test.js';
2
2
 
3
- const { fail, is_test_output, MockSeries, success } = require('../test.js');
4
-
5
- module.exports.test = async () => {
3
+ export async function test() {
6
4
  const ts = {
7
5
  'tests': {
8
6
  meta: {
@@ -33,6 +31,9 @@ module.exports.test = async () => {
33
31
  };
34
32
 
35
33
  const expected_stdout = [
34
+ 'Settings: no temporary storage dir',
35
+ 'Settings: logging into /tmp',
36
+ 'Settings: chrome webdrivers',
36
37
  '\x1B[38;5;99mStarted\x1B[0m mac/',
37
38
  '\x1B[38;5;99mStarted\x1B[0m mac/unit',
38
39
  '\x1B[38;5;99mStarted\x1B[0m mac/unit/base',
@@ -81,6 +82,6 @@ module.exports.test = async () => {
81
82
  () => MockSeries.run([], { ts, verify: true }),
82
83
  expected_stdout,
83
84
  expected_stderr,
84
- 'verify: nested'
85
+ 'verify: nested',
85
86
  );
86
- };
87
+ }
@@ -1,8 +1,6 @@
1
- 'use strict';
1
+ import { fail, is_test_output, MockSeries, success } from '../test.js';
2
2
 
3
- const { fail, is_test_output, MockSeries, success } = require('../test.js');
4
-
5
- module.exports.test = async () => {
3
+ export async function test() {
6
4
  let testfailed = false;
7
5
  const ts = {
8
6
  'tests': {
@@ -33,6 +31,9 @@ module.exports.test = async () => {
33
31
  };
34
32
 
35
33
  const expected_stdout = [
34
+ 'Settings: no temporary storage dir',
35
+ 'Settings: logging into /tmp',
36
+ 'Settings: chrome webdrivers',
36
37
  '\x1B[38;5;99mStarted\x1B[0m mac/',
37
38
  '\x1B[38;5;99mStarted\x1B[0m mac/webdriver',
38
39
  '\x1B[38;5;99mStarted\x1B[0m mac/webdriver/chrome',
@@ -103,6 +104,6 @@ module.exports.test = async () => {
103
104
  }),
104
105
  expected_stdout,
105
106
  expected_stderr,
106
- 'verify_wd'
107
+ 'verify_wd',
107
108
  );
108
- };
109
+ }