Skip to content

gemini-testing/testplane-globals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@testplane/globals

TypeScript global type declarations for Testplane.

Exposes it, describe, beforeEach, afterEach, testplane as ambient globals so you don't need to import them in every test file.

Installation

npm install --save-dev @testplane/globals

Requires testplane >= 9.0.0 as a peer dependency.

Usage

Add the package to the types array in your tsconfig.json:

{
  "compilerOptions": {
    "types": ["@testplane/globals"]
  }
}

Then use Testplane's globals in your tests without imports:

describe('my suite', () => {
  it('works', async ({browser}) => {
    await browser.url('/');
  });
});

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors