fixture

Provide fixture to tests

MIT License

Downloads
4.7K
Stars
2
Committers
8

Bot releases are hidden (Show)

fixture - v3.1.2

Published by unional about 2 years ago

3.1.2 (2022-08-27)

Bug Fixes

fixture - v3.1.1

Published by unional about 2 years ago

3.1.1 (2022-08-27)

Bug Fixes

fixture - v3.1.0

Published by unional about 2 years ago

3.1.0 (2022-08-27)

Bug Fixes

Features

fixture - v3.0.1

Published by unional about 2 years ago

3.0.1 (2022-08-25)

Bug Fixes

fixture - v3.0.0

Published by unional about 2 years ago

3.0.0 (2022-08-25)

Bug Fixes

Features

  • adjust folders to paths (92cce46)

BREAKING CHANGES

  • context behavior changed

The handler context now contains case|baseline|resultPath instead of folder.

The behavior for file-case and folder-case are now the same.

casePath points to the actual case file or folder.
baseline|resultPath always points to a folder with case name.
Even if it is a file-case,
a folder with that name (including file extension) will be created.

This allows users to simply check caseType to see if it is a file or folder case and process the case based on their assumption.

This allows the baseline() to be used in a fixture folder with mixed file and folder cases.

fixture - v2.0.2

Published by unional about 2 years ago

2.0.2 (2022-08-23)

Bug Fixes

fixture - v2.0.1

Published by unional over 2 years ago

2.0.1 (2022-06-07)

Bug Fixes

  • deps: update dependency standard-log to v8 (2a2afbf)
  • deps: upgrade standard-log-color (0ea01a7)
fixture - v2.0.0

Published by unional over 2 years ago

2.0.0 (2022-06-05)

BREAKING CHANGES

  • upgrade chalk

chalk@5 is published as ESM, and that breaks jest.

Need to add this to jest.config.js:

{
  moduleNameMapper: {
    '#(.*)': '<rootDir>/node_modules/$1' // needed for `chalk` getting `#ansi-styles`
  },
  transformIgnorePatterns: [
    'node_modules/(?!(@unional\\fixture|chalk)/)'
  ]
}
fixture - v1.8.5

Published by unional over 2 years ago

1.8.5 (2022-06-05)

Bug Fixes

fixture - v1.8.4

Published by unional over 2 years ago

1.8.4 (2022-06-05)

Bug Fixes

fixture - v1.8.3

Published by unional over 2 years ago

1.8.3 (2022-06-05)

Bug Fixes

fixture - v1.7.2

Published by unional over 5 years ago

1.7.2 (2019-05-13)

Bug Fixes

fixture - v1.7.1

Published by unional over 5 years ago

1.7.1 (2019-05-13)

Bug Fixes

fixture - v1.7.0

Published by unional almost 6 years ago

1.7.0 (2018-11-17)

Features

  • do not remove result folder content if match is not executed. (#46) (ff3efb4)
fixture - v1.6.4

Published by unional about 6 years ago

1.6.4 (2018-10-26)

Bug Fixes

fixture - v1.6.3

Published by unional over 6 years ago

1.6.3 (2018-05-01)

Bug Fixes

fixture - v1.6.2

Published by unional over 6 years ago

1.6.2 (2018-05-01)

Bug Fixes

fixture - v1.6.1

Published by unional over 6 years ago

1.6.1 (2018-05-01)

Bug Fixes

  • log time spent on compare and diff. (#26) (af2df9f)
fixture - v1.6.0

Published by unional over 6 years ago

1.6.0 (2018-04-24)

Features

fixture - v1.5.0

Published by unional over 6 years ago

1.5.0 (2018-04-18)

Features