@@ -6,7 +6,7 @@ import { HardhatError } from "@ignored/hardhat-vnext-errors";
6
6
import { assertRejectsWithHardhatError } from "@nomicfoundation/hardhat-test-utils" ;
7
7
8
8
import { createHardhatRuntimeEnvironment } from "../../../../src/hre.js" ;
9
- import runScriptWithHardhat from "../../../../src/internal/builtin-plugins/run/runScriptWithHardhat .js" ;
9
+ import runScriptWithHardhat from "../../../../src/internal/builtin-plugins/run/task-action .js" ;
10
10
import { useFixtureProject } from "../../../helpers/project.js" ;
11
11
12
12
describe ( "runScriptWithHardhat" , function ( ) {
@@ -16,26 +16,6 @@ describe("runScriptWithHardhat", function () {
16
16
hre = await createHardhatRuntimeEnvironment ( { } ) ;
17
17
} ) ;
18
18
19
- it ( "should throw if script is not a string" , async function ( ) {
20
- await assertRejectsWithHardhatError (
21
- runScriptWithHardhat ( { script : 123 , noCompile : false } , hre ) ,
22
- HardhatError . ERRORS . INTERNAL . ASSERTION_ERROR ,
23
- {
24
- message : "Expected script to be a string" ,
25
- } ,
26
- ) ;
27
- } ) ;
28
-
29
- it ( "should throw if noCompile is not a boolean" , async function ( ) {
30
- await assertRejectsWithHardhatError (
31
- runScriptWithHardhat ( { script : "script.js" , noCompile : 123 } , hre ) ,
32
- HardhatError . ERRORS . INTERNAL . ASSERTION_ERROR ,
33
- {
34
- message : "Expected noCompile to be a boolean" ,
35
- } ,
36
- ) ;
37
- } ) ;
38
-
39
19
describe ( "javascript" , function ( ) {
40
20
useFixtureProject ( "run-js-script" ) ;
41
21
0 commit comments