Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions easydata.js/packs/core/__tests__/assign-deep-array.test.ts

This file was deleted.

14 changes: 0 additions & 14 deletions easydata.js/packs/core/__tests__/assign-deep-circular.test.ts

This file was deleted.

34 changes: 0 additions & 34 deletions easydata.js/packs/core/__tests__/assign-deep.test.ts

This file was deleted.

37 changes: 0 additions & 37 deletions easydata.js/packs/core/__tests__/assign-deep2.test.ts

This file was deleted.

24 changes: 0 additions & 24 deletions easydata.js/packs/core/__tests__/assign.test.ts

This file was deleted.

18 changes: 18 additions & 0 deletions easydata.js/packs/core/__tests__/demo.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
describe('Demo', () => {
it('should run a simple test', () => {
expect(1 + 1).toBe(2);
});

it('should mock a function', () => {
const mockFunction = mock(() => 42, null, 'default');
expect(mockFunction()).toBe(42);
});

it('should create a class instance', () => {
class DemoClass {
constructor(public name: string) {}
}
const instance = new DemoClass('Test');
expect(instance.name).toBe('Test');
});
})
32 changes: 0 additions & 32 deletions easydata.js/packs/core/__tests__/generate-id.test.ts

This file was deleted.

9 changes: 6 additions & 3 deletions easydata.js/packs/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build": "npm run clear && rollup -c",
"watch": "rollup -c -w",
"docs": "typedoc src/public_api.ts --out ./docs",
"test": "vitest run"
"test": "cross-env NODE_OPTIONS=\"--import tsx\" latte -d -v -t --include=./**/*.test.ts"
},
"author": "Korzh.com",
"homepage": "https://github.com/KorzhCom/EasyData",
Expand All @@ -29,5 +29,8 @@
"license": "MIT",
"files": [
"dist"
]
}
],
"dependencies": {
"tsx": "^4.19.4"
}
}
Loading
Loading