Socket
Book a DemoInstallSign in
Socket

flex-plugin-utils-jest

Package Overview
Dependencies
Maintainers
3
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flex-plugin-utils-jest

Flex Plugin E2E Tests framework

latest
Source
npmnpm
Version
4.3.4
Version published
Maintainers
3
Created
Source

npm npm NpmLicense

Flex Plugin Utils Jest

Jest extensions used throughout Flex Plugin Builder

Extension

This library provides the following extensions to Jest

toMatchPath(expected: string)

This method can be used to check for path and is OS agnostic.

// Use symmetrically
expect('/path/to/file1').toMatchPath('/path/to/file1');

// Use asymmetrically
expect(fn).toHaveBeenCalledWith(expect.toMatchPath('/path/to/file1'));

toMatchPathContaining(expected: string)

Similar to toMatchPath but will do partial match

// Use symmetrically
expect('/path/to/file1').toMatchPathContaining('to/file1');

// Use asymmetrically
expect(fn).toHaveBeenCalledWith(expect.toMatchPathContaining('to/file1'));

Contributors

Thank you to all the lovely contributors to this project. Please check the main repository to see all contributors.

License

MIT

Keywords

flex

FAQs

Package last updated on 15 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts