Skip to content

Commit

Permalink
refactor: rename minimal-new-api to just minimal in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kanej committed Sep 6, 2023
1 parent 209d9d8 commit dd928d9
Show file tree
Hide file tree
Showing 35 changed files with 59 additions and 269 deletions.
2 changes: 1 addition & 1 deletion packages/hardhat-plugin/test/calls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { assert } from "chai";
import { useEphemeralIgnitionProject } from "./use-ignition-project";

describe("calls", () => {
useEphemeralIgnitionProject("minimal-new-api");
useEphemeralIgnitionProject("minimal");

it("should be able to call contracts", async function () {
const moduleDefinition = buildModule("SetAddressModule", (m) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-plugin/test/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { assert } from "chai";
import { useEphemeralIgnitionProject } from "./use-ignition-project";

describe("contract deploys", () => {
useEphemeralIgnitionProject("minimal-new-api");
useEphemeralIgnitionProject("minimal");

it("should be able to deploy a contract", async function () {
const moduleDefinition = buildModule("FooModule", (m) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-plugin/test/error-handling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { assert } from "chai";
import { useEphemeralIgnitionProject } from "./use-ignition-project";

describe("module error handling", () => {
useEphemeralIgnitionProject("minimal-new-api");
useEphemeralIgnitionProject("minimal");

it("should error on passing async callback", async function () {
assert.throws(
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-plugin/test/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { assert } from "chai";
import { useEphemeralIgnitionProject } from "./use-ignition-project";

describe("events", () => {
useEphemeralIgnitionProject("minimal-new-api");
useEphemeralIgnitionProject("minimal");

it("should be able to use the output of a readEvent in a contract at", async function () {
const moduleDefinition = buildModule("FooModule", (m) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ import {
* with a passed in artifact.
*/
describe.skip("execution - deploy contractAt from artifact", function () {
// TODO: rename back to minimal api once execution switched over
useEphemeralIgnitionProject("minimal-new-api");
useEphemeralIgnitionProject("minimal");

it("should deploy a contract that is callable", async function () {
// Arrange
Expand Down
3 changes: 1 addition & 2 deletions packages/hardhat-plugin/test/execution/deploy-contract-at.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import {
* First deploy a working contract, then reuse it from a subsequent module.
*/
describe("execution - deploy contract at", function () {
// TODO: rename back to minimal api once execution switched over
useEphemeralIgnitionProject("minimal-new-api");
useEphemeralIgnitionProject("minimal");

it.skip("should deploy a contract that is callable", async function () {
const moduleDefinition = buildModule("FooModule", (m) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import { mineBlock } from "./helpers";
* Deploy a contract from an artifact.
*/
describe("execution - deploy contract from artifact", function () {
// TODO: rename back to minimal api once execution switched over
useEphemeralIgnitionProject("minimal-new-api");
useEphemeralIgnitionProject("minimal");

it("should deploy a contract that is callable", async function () {
const fooArtifact = await this.hre.artifacts.readArtifact("Foo");
Expand Down
3 changes: 1 addition & 2 deletions packages/hardhat-plugin/test/execution/deploy-contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import { mineBlock } from "./helpers";
* Deploy a single contract with non-problematic network
*/
describe("execution - deploy contract", function () {
// TODO: rename back to minimal api once execution switched over
useEphemeralIgnitionProject("minimal-new-api");
useEphemeralIgnitionProject("minimal");

it("should deploy a contract that is callable", async function () {
const moduleDefinition = buildModule("FooModule", (m) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ import { sleep } from "./helpers";
* The intent here is to test batching.
*/
describe("execution - multiple batch contract deploy", function () {
// TODO: rename back to minimal api once execution switched over
useEphemeralIgnitionProject("minimal-new-api");
useEphemeralIgnitionProject("minimal");

it("should deploy over multiple batches", async function () {
const moduleDefinition = buildModule("FooModule", (m) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { mineBlock } from "../helpers";
*/
describe("execution - error on pending user transactions", () => {
useFileIgnitionProject(
"minimal-new-api",
"minimal",
"error-on-rerun-with-replaced-pending-user-transaction"
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
*/
describe("execution - error on rerun with replaced pending user transaction", () => {
useFileIgnitionProject(
"minimal-new-api",
"minimal",
"error-on-rerun-with-replaced-pending-user-transaction"
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
* before it is confirmed, then we halt and display an error.
*/
describe("execution - error on transaction dropped", () => {
useFileIgnitionProject("minimal-new-api", "error-on-transaction-dropped");
useFileIgnitionProject("minimal", "error-on-transaction-dropped");

it.skip("should error on the drop being detected", async function () {
// Setup a module with two contract deploys (foo1 and foo2) over 2 batches
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
* we should error and halt immediately
*/
describe("execution - error on user transaction sent", () => {
useFileIgnitionProject("minimal-new-api", "error-on-user-transaction-sent");
useFileIgnitionProject("minimal", "error-on-user-transaction-sent");

it.skip("should error on the drop being detected", async function () {
const moduleDefinition = buildModule("FooModule", (m) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ import { clearPendingTransactionsFromMemoryPool, mineBlock } from "../helpers";
* the transaction should be resubmitted.
*/
describe("execution - rerun with dropped ignition transactions", () => {
useFileIgnitionProject(
"minimal-new-api",
"rerun-with-dropped-ignition-transactions"
);
useFileIgnitionProject("minimal", "rerun-with-dropped-ignition-transactions");

it.skip("should deploy successfully on second run", async function () {
const moduleDefinition = buildModule("FooModule", (m) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { mineBlock } from "../helpers";
*/
describe("execution - rerun with now complete ignition transactions", () => {
useFileIgnitionProject(
"minimal-new-api",
"minimal",
"rerun-with-now-complete-ignition-transactions"
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ import {
* up where the first run left off and without any other user transactions.
*/
describe("execution - rerun with pending ignition transactions", () => {
useFileIgnitionProject(
"minimal-new-api",
"rerun-with-pending-ignition-transactions"
);
useFileIgnitionProject("minimal", "rerun-with-pending-ignition-transactions");

it.skip("should complete the run on the second attempt", async function () {
const moduleDefinition = buildModule("FooModule", (m) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { mineBlock, sleep } from "../helpers";
*/
describe("execution - rerun with replaced confirmed user transaction", () => {
useFileIgnitionProject(
"minimal-new-api",
"minimal",
"rerun-with-replaced-confirmed-user-transaction"
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
* TODO: Needs to be updated to deal with fee bumps
*/
describe.skip("execution - deploy run times out", () => {
useFileIgnitionProject("minimal-new-api", "deploy-run-times-out", {});
useFileIgnitionProject("minimal", "deploy-run-times-out", {});

it("should error naming timed out transactions", async function () {
// Setup a module with a contract deploy on accounts[2]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
* TODO: Needs to be updated to deal with fee bumps
*/
describe.skip("execution - rerun a deploy that timed out", () => {
useFileIgnitionProject("minimal-new-api", "rerun-a-deploy-that-timed-out");
useFileIgnitionProject("minimal", "rerun-a-deploy-that-timed-out");

it("should error naming timed out transactions", async function () {
// Setup a module with a contract deploy on accounts[2]
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-plugin/test/existing-contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { assert } from "chai";
import { useEphemeralIgnitionProject } from "./use-ignition-project";

describe("existing contract", () => {
useEphemeralIgnitionProject("minimal-new-api");
useEphemeralIgnitionProject("minimal");

it("should be able to use an existing contract", async function () {
await this.hre.run("compile", { quiet: true });
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit dd928d9

Please sign in to comment.