11import fs from 'node:fs' ;
22import path from 'node:path' ;
33import { fileURLToPath } from 'node:url' ;
4- import { assert , beforeEach , test } from '@rstest/core' ;
4+ import { beforeEach , expect , test } from '@rstest/core' ;
55import fse from 'fs-extra' ;
66import { create } from '../dist/index.js' ;
77
@@ -45,7 +45,6 @@ test('should run extra tool action', async () => {
4545 root : fixturesDir ,
4646 templates : [ 'vanilla' ] ,
4747 getTemplateName : async ( ) => 'vanilla' ,
48- mapESLintTemplate : ( ) => null ,
4948 extraTools : [
5049 {
5150 value : 'custom-action' ,
@@ -57,7 +56,7 @@ test('should run extra tool action', async () => {
5756 ] ,
5857 } ) ;
5958
60- assert . strictEqual ( actionCalled , true ) ;
59+ expect ( actionCalled ) . toBe ( true ) ;
6160} ) ;
6261
6362test ( 'should run extra tool command' , async ( ) => {
@@ -82,7 +81,6 @@ test('should run extra tool command', async () => {
8281 root : fixturesDir ,
8382 templates : [ 'vanilla' ] ,
8483 getTemplateName : async ( ) => 'vanilla' ,
85- mapESLintTemplate : ( ) => null ,
8684 extraTools : [
8785 {
8886 value : 'custom-command' ,
@@ -92,5 +90,5 @@ test('should run extra tool command', async () => {
9290 ] ,
9391 } ) ;
9492
95- assert . strictEqual ( fs . existsSync ( touchedFile ) , true ) ;
93+ expect ( fs . existsSync ( touchedFile ) ) . toBe ( true ) ;
9694} ) ;
0 commit comments