File tree 2 files changed +30
-2
lines changed
v-next/core/test/internal
2 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 1
1
import assert from "node:assert/strict" ;
2
- import { describe , it } from "node:test" ;
2
+ import { after , before , describe , it } from "node:test" ;
3
3
4
4
import { HardhatError } from "@ignored/hardhat-vnext-errors" ;
5
5
@@ -13,6 +13,20 @@ import { RESERVED_PARAMETER_NAMES } from "../../src/internal/parameters.js";
13
13
import { createTestEnvManager } from "../utils.js" ;
14
14
15
15
describe ( "Global Options" , ( ) => {
16
+ before ( ( ) => {
17
+ // Make sure we have some reserved names
18
+ RESERVED_PARAMETER_NAMES . add ( "testName1" ) ;
19
+ RESERVED_PARAMETER_NAMES . add ( "testName2" ) ;
20
+ RESERVED_PARAMETER_NAMES . add ( "testName3" ) ;
21
+ } ) ;
22
+
23
+ after ( ( ) => {
24
+ // Delete the test reserved names
25
+ RESERVED_PARAMETER_NAMES . delete ( "testName1" ) ;
26
+ RESERVED_PARAMETER_NAMES . delete ( "testName2" ) ;
27
+ RESERVED_PARAMETER_NAMES . delete ( "testName3" ) ;
28
+ } ) ;
29
+
16
30
describe ( "buildGlobalOptionsMap" , ( ) => {
17
31
it ( "should build an empty map of global options if no plugins are provided" , ( ) => {
18
32
const globalOptionsMap = buildGlobalOptionsMap ( [ ] ) ;
Original file line number Diff line number Diff line change 1
1
import assert from "node:assert/strict" ;
2
- import { describe , it } from "node:test" ;
2
+ import { after , before , describe , it } from "node:test" ;
3
3
4
4
import { HardhatError } from "@ignored/hardhat-vnext-errors" ;
5
5
@@ -13,6 +13,20 @@ import { ParameterType } from "../../../src/types/common.js";
13
13
import { TaskDefinitionType } from "../../../src/types/tasks.js" ;
14
14
15
15
describe ( "Task builders" , ( ) => {
16
+ before ( ( ) => {
17
+ // Make sure we have some reserved names
18
+ RESERVED_PARAMETER_NAMES . add ( "testName1" ) ;
19
+ RESERVED_PARAMETER_NAMES . add ( "testName2" ) ;
20
+ RESERVED_PARAMETER_NAMES . add ( "testName3" ) ;
21
+ } ) ;
22
+
23
+ after ( ( ) => {
24
+ // Delete the test reserved names
25
+ RESERVED_PARAMETER_NAMES . delete ( "testName1" ) ;
26
+ RESERVED_PARAMETER_NAMES . delete ( "testName2" ) ;
27
+ RESERVED_PARAMETER_NAMES . delete ( "testName3" ) ;
28
+ } ) ;
29
+
16
30
describe ( "EmptyTaskDefinitionBuilderImplementation" , ( ) => {
17
31
it ( "should create an empty task definition builder" , ( ) => {
18
32
const builder = new EmptyTaskDefinitionBuilderImplementation ( "task-id" ) ;
You can’t perform that action at this time.
0 commit comments