UNPKG

@revoloo/cypress6

Version:

Cypress.io end to end testing tool

10 lines (9 loc) 273 B
/// <reference types="cypress" /> describe('Dynamic import', () => { it('works', () => { // dynamically import module // and then invoke an exported method "reverse" cy.wrap(import('../utils')) .invoke('reverse', 'Hello').should('equal', 'olleH') }) })