4.3.4 • Published 2 years ago

flex-plugin-utils-jest v4.3.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

4.3.2

2 years ago

4.3.1

2 years ago

4.3.4

2 years ago

4.3.3

2 years ago

4.3.0

2 years ago

4.2.3-rc.0

2 years ago

4.2.2

3 years ago

4.2.2-rc.0

3 years ago

4.2.1

3 years ago

4.2.0

3 years ago

4.1.4-rc.0

3 years ago

4.1.3

3 years ago

4.1.2

3 years ago

4.1.3-rc.0

3 years ago

4.1.1

3 years ago

4.0.2-rc.0

3 years ago

4.1.0

3 years ago

4.0.2-alpha.0

3 years ago

4.0.1-rc.0

3 years ago

4.0.3-alpha.0

3 years ago

4.0.4-alpha.0

3 years ago

4.0.5-alpha.0

3 years ago

4.0.1

3 years ago

4.0.1-alpha.0

3 years ago

4.0.0

3 years ago

4.10.0-alpha.0

3 years ago

4.9.1-beta.0

3 years ago

4.9.0-beta.0

3 years ago

4.8.0-beta.0

3 years ago

4.7.7-beta.0

3 years ago