mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-02-05 17:29:09 +08:00
Implement versioning strategies in js 🧉
This commit is contained in:
15
src/jest.setup.js
Normal file
15
src/jest.setup.js
Normal file
@@ -0,0 +1,15 @@
|
||||
expect.extend({
|
||||
toBeEitherAFunctionOrAnObject(received) {
|
||||
const type = typeof received;
|
||||
|
||||
const pass = ['object', 'function'].includes(type);
|
||||
const message = `Expected a function or an object, received ${type}`;
|
||||
|
||||
return {
|
||||
message,
|
||||
pass,
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
jest.mock('./model/input');
|
||||
Reference in New Issue
Block a user