@velocitycareerlabs/lambda 1.26.0-dev-build.1f5f235dd → 1.26.0-dev-build.1a6aed3a4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velocitycareerlabs/lambda",
3
- "version": "1.26.0-dev-build.1f5f235dd",
3
+ "version": "1.26.0-dev-build.1a6aed3a4",
4
4
  "description": "Lambda common package for Velocity Projects ",
5
5
  "repository": "https://github.com/velocitycareerlabs/packages",
6
6
  "main": "index.js",
@@ -9,19 +9,20 @@
9
9
  "access": "public"
10
10
  },
11
11
  "scripts": {
12
- "test": "jest --config jest.config.js --runInBand --coverage",
12
+ "test": "cross-env NODE_ENV=test node --test --test-concurrency=1 --experimental-test-module-mocks --experimental-test-coverage --test-reporter=spec --test-reporter-destination=stdout 'test/**/*.test.js'",
13
+ "test:ci": "NODE_ENV=test node --test --test-concurrency=1 --experimental-test-module-mocks --experimental-test-coverage --test-coverage-include='src/**' --test-reporter=spec --test-reporter=junit --test-reporter-destination=stdout --test-reporter-destination=test-results.junit.xml --test-reporter=lcov --test-reporter-destination=lcov.info 'test/**/*.test.js'",
13
14
  "start": "node index.js",
14
15
  "lint": "eslint ",
15
16
  "lint:fix": "eslint --fix --ext .js "
16
17
  },
17
18
  "dependencies": {
18
- "@verii/aws-clients": "1.0.0-pre.1757279740",
19
- "@verii/logger": "1.0.0-pre.1757279740",
19
+ "@verii/aws-clients": "1.0.0-pre.1757456926",
20
+ "@verii/logger": "1.0.0-pre.1757456926",
20
21
  "env-var": "^7.0.0",
21
22
  "mongodb": "~6.18.0"
22
23
  },
23
24
  "devDependencies": {
24
- "@verii/tests-helpers": "1.0.0-pre.1757279740",
25
+ "@verii/tests-helpers": "1.0.0-pre.1757456926",
25
26
  "eslint": "8.57.1",
26
27
  "eslint-config-airbnb-base": "14.2.1",
27
28
  "eslint-config-prettier": "8.10.2",
@@ -31,7 +32,7 @@
31
32
  "eslint-plugin-prefer-arrow-functions": "3.6.2",
32
33
  "eslint-plugin-prettier": "4.2.5",
33
34
  "eslint-watch": "7.0.0",
34
- "jest": "29.7.0"
35
+ "expect": "29.7.0"
35
36
  },
36
- "gitHead": "8150ae28eac5fe570bea11453ae545c9f3dd74e5"
37
+ "gitHead": "ff57e717f15ed96719d3d3473902497913ee1cf5"
37
38
  }
@@ -1,3 +1,5 @@
1
+ const { describe, it } = require('node:test');
2
+ const { expect } = require('expect');
1
3
  const { buildMongoConnection } = require('@verii/tests-helpers');
2
4
  require('./helpers/setup');
3
5
  const env = require('env-var');
@@ -9,8 +11,6 @@ const awsRegion = env.get('AWS_REGION').asString();
9
11
  const awsEndpoint = env.get('AWS_ENDPOINT').asString();
10
12
 
11
13
  describe('Credit distribution test suite', () => {
12
- beforeAll(async () => {});
13
-
14
14
  it('should call lambda handler', async () => {
15
15
  const eventName = 'abc123';
16
16
  let expectedEvent;
package/jest.config.js DELETED
@@ -1,20 +0,0 @@
1
- /**
2
- * Copyright 2023 Velocity Team
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- const jestConfig = require('../../jest.config.base');
18
- const pack = require('./package.json');
19
-
20
- module.exports = jestConfig(pack.name);