@exam_guard/core 10.0.5 → 10.1.0

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.
Files changed (2) hide show
  1. package/dist/proctor.js +1 -1
  2. package/package.json +34 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exam_guard/core",
3
- "version": "10.0.5",
3
+ "version": "10.1.0",
4
4
  "description": "AI proctoring tool",
5
5
  "main": "dist/proctor.js",
6
6
  "files": [
@@ -10,7 +10,7 @@
10
10
  "access": "public"
11
11
  },
12
12
  "scripts": {
13
- "test": "echo \"Error: no test specified\" && exit 1",
13
+ "test": "jest",
14
14
  "lint": "eslint .",
15
15
  "lint:fix": "eslint . --fix",
16
16
  "start": "webpack serve --config webpack.config.js",
@@ -118,5 +118,37 @@
118
118
  "webpack-cli": "^6.0.1",
119
119
  "webpack-dev-server": "^5.1.0",
120
120
  "worker-loader": "^3.0.8"
121
+ },
122
+ "jest": {
123
+ "testMatch": [
124
+ "<rootDir>/src/**/*.test.{js,ts,tsx}"
125
+ ],
126
+ "moduleNameMapper": {
127
+ "^@/(.*)$": "<rootDir>/src/$1"
128
+ },
129
+ "transform": {
130
+ "^.+\\.[jt]sx?$": [
131
+ "babel-jest",
132
+ {
133
+ "presets": [
134
+ [
135
+ "@babel/preset-env",
136
+ {
137
+ "targets": {
138
+ "node": "current"
139
+ }
140
+ }
141
+ ],
142
+ "@babel/preset-typescript",
143
+ [
144
+ "@babel/preset-react",
145
+ {
146
+ "runtime": "automatic"
147
+ }
148
+ ]
149
+ ]
150
+ }
151
+ ]
152
+ }
121
153
  }
122
154
  }