44 * @typedef {import('react').ReactNode } ReactNode
55 */
66
7+ import assert from 'node:assert/strict'
78import fs from 'node:fs/promises'
8- import { test } from 'uvu'
9- import * as assert from 'uvu/assert'
9+ import test from 'node:test'
1010import React from 'react'
1111import gfm from 'remark-gfm'
1212import { visit } from 'unist-util-visit'
@@ -728,7 +728,7 @@ test('should pass on raw source position to non-tag components if rawSourcePos o
728728 rawSourcePos
729729 components = { {
730730 em ( { node, sourcePosition, ...props } ) {
731- assert . equal ( sourcePosition , {
731+ assert . deepEqual ( sourcePosition , {
732732 start : { line : 1 , column : 1 , offset : 0 } ,
733733 end : { line : 1 , column : 6 , offset : 5 }
734734 } )
@@ -754,7 +754,7 @@ test('should pass on raw source position to non-tag components if rawSourcePos o
754754 components = { {
755755 // @ts -expect-error JSX types currently only handle element returns not string returns
756756 em ( { sourcePosition} ) {
757- assert . equal ( sourcePosition , {
757+ assert . deepEqual ( sourcePosition , {
758758 start : { line : 1 , column : 1 , offset : 0 } ,
759759 end : { line : 1 , column : 6 , offset : 5 }
760760 } )
@@ -1436,7 +1436,7 @@ test('should support remark plugins with array parameter', async () => {
14361436 const expected = '<p>a</p>'
14371437 assert . equal ( actual , expected )
14381438
1439- assert . not . match ( message , / W a r n i n g : F a i l e d / , 'Prop types should be valid' )
1439+ assert . doesNotMatch ( message , / W a r n i n g : F a i l e d / , 'Prop types should be valid' )
14401440 console . error = error
14411441} )
14421442
@@ -1459,8 +1459,6 @@ test('should support rehype plugins with array parameter', async () => {
14591459 const expected = '<p>a</p>'
14601460 assert . equal ( actual , expected )
14611461
1462- assert . not . match ( message , / W a r n i n g : F a i l e d / , 'Prop types should be valid' )
1462+ assert . doesNotMatch ( message , / W a r n i n g : F a i l e d / , 'Prop types should be valid' )
14631463 console . error = error
14641464} )
1465-
1466- test . run ( )
0 commit comments