Skip to content

Update Async Tests Under AISKU to Use the Modern AsyncQueue Pattern #2601

@Karlie-777

Description

@Karlie-777

updates all async unit tests in the AISKU directory to use the modern asyncQueue pattern instead of the deprecated testCaseAsync. reference link #2544
Example of the Pattern Change:
before:

this.testCaseAsync({
    name: "Test name",
    stepDelay: 1,
    useFakeTimers: true,
    steps: [() => {
        // Test setup
        // ...
    }].concat(this.waitForException(1))
    .concat(() => {
        // Assertions
        // ...
    })
});

after:

this.testCase({
    name: "Test name",
    useFakeTimers: true,
    test: () => {
        return this._asyncQueue().add(() => {
            // Test setup
            // ...
        })
        .concat(this.waitForException(1))
        .add(() => {
            // Assertions
            // ...
        });
    }
});

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions