Commit 07e5aa1

Anton Golub <antongolub@antongolub.com>
2022-06-05 13:59:42
test: add suite labels (#430)
1 parent 26ead2d
test/cli.test.js
@@ -12,10 +12,12 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-import { test } from 'uvu'
+import { suite } from 'uvu'
 import * as assert from 'uvu/assert'
 import '../build/globals.js'
 
+const test = suite('cli')
+
 $.verbose = false
 
 test('prints version', async () => {
test/experimental.test.js
@@ -12,12 +12,12 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-import { test } from 'uvu'
+import { suite } from 'uvu'
 import * as assert from 'uvu/assert'
 import '../build/globals.js'
 import { retry, withTimeout } from '../build/experimental.js'
 
-import chalk from 'chalk'
+const test = suite('experimental')
 
 $.verbose = false
 
test/index.test.js
@@ -13,7 +13,7 @@
 // limitations under the License.
 
 import chalk from 'chalk'
-import { test } from 'uvu'
+import { suite } from 'uvu'
 import * as assert from 'uvu/assert'
 import { inspect } from 'node:util'
 import { Writable } from 'node:stream'
@@ -21,6 +21,8 @@ import { Socket } from 'node:net'
 import { ProcessPromise } from '../build/index.js'
 import '../build/globals.js'
 
+const test = suite('index')
+
 $.verbose = false
 
 test('only stdout is used during command substitution', async () => {