@jterrazz/test 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENCE ADDED
@@ -0,0 +1 @@
1
+ Copyright (c) 2O24 Jean-Baptiste Terrazzoni <jterrazzoni@gmail.com>. All rights reserved.
package/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # Package Typescript Test
2
+
3
+ This package provides Jest configuration and test packages for TypeScript projects.
4
+
5
+ ## Installation
6
+
7
+ Install the package using npm:
8
+
9
+ ```bash
10
+ npm install @jterrazz/test --save-dev
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ 1. Create a Jest configuration file (e.g., `jest.config.js`) in your project root:
16
+
17
+ ```javascript
18
+ // jest.config.js
19
+ import { jestConfig } from '@jterrazz/package-typescript-test';
20
+
21
+ export default jestConfig();
22
+ ```
23
+
24
+ 2. You can now test your TypeScript project!
25
+
26
+ Happy testing! 🚀
@@ -0,0 +1,5 @@
1
+ import jestConfig from './jest/main.js';
2
+ import jestEslint from './jest-eslint/main.js';
3
+ import jestMockExtended from './jest-mock-extended/main.js';
4
+ import msw from './msw/main.js';
5
+ export { jestConfig, jestMockExtended, msw, jestEslint };
@@ -0,0 +1,2 @@
1
+ import { JestConfigWithTsJest } from 'ts-jest';
2
+ export default function (): Promise<JestConfigWithTsJest>;
@@ -0,0 +1,2 @@
1
+ declare const _default: any[];
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import * as jestMockExtended from 'jest-mock-extended';
2
+ export default jestMockExtended;
@@ -0,0 +1,2 @@
1
+ import * as msw from 'msw';
2
+ export default msw;
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@jterrazz/test",
3
+ "author": "Jean-Baptiste Terrazzoni <contact@jterrazz.com>",
4
+ "version": "2.0.2",
5
+ "exports": {
6
+ ".": {
7
+ "require": "./dist/index.cjs",
8
+ "import": "./dist/index.js"
9
+ }
10
+ },
11
+ "files": [
12
+ "dist"
13
+ ],
14
+ "type": "module",
15
+ "scripts": {
16
+ "build": "ts-compile",
17
+ "build-watch": "ts-compile --watch",
18
+ "lint": "quality-check"
19
+ },
20
+ "devDependencies": {
21
+ "@jterrazz/quality": "^2.0.3",
22
+ "@jterrazz/typescript": "^2.0.1"
23
+ },
24
+ "dependencies": {
25
+ "@swc/jest": "^0.2.36",
26
+ "@types/jest": "^29.5.12",
27
+ "eslint-plugin-jest": "^28.5.0",
28
+ "jest": "^29.7.0",
29
+ "jest-mock-extended": "^3.0.7",
30
+ "msw": "^2.7.3",
31
+ "ts-jest": "^29.1.2",
32
+ "tsconfig-to-swcconfig": "^2.7.0"
33
+ },
34
+ "publishConfig": {
35
+ "registry": "https://registry.npmjs.org/"
36
+ }
37
+ }