Skip to content

Commit cfc8f00

Browse files
committed
feat!(NODE-3555): Refactor BSON to work with cross platform JS APIs
1 parent 027ffb7 commit cfc8f00

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1407
-3597
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"parser": "@typescript-eslint/parser",
2121
"parserOptions": {
22-
"ecmaVersion": 2017,
22+
"ecmaVersion": 2020,
2323
"project": [
2424
"./tsconfig.json"
2525
]

.evergreen/config.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -122,17 +122,16 @@ tasks:
122122
- func: run tests
123123
vars:
124124
TEST_TARGET: node
125-
# TODO(NODE-3555): Karma tests pass locally still after these changes, rhel80 is just missing chrome
126-
# - name: browser-tests
127-
# tags: ["browser"]
128-
# commands:
129-
# - func: fetch source
130-
# vars:
131-
# NODE_MAJOR_VERSION: 16
132-
# - func: install dependencies
133-
# - func: run tests
134-
# vars:
135-
# TEST_TARGET: browser
125+
- name: web-tests
126+
tags: ["web"]
127+
commands:
128+
- func: fetch source
129+
vars:
130+
NODE_MAJOR_VERSION: 18
131+
- func: install dependencies
132+
- func: run tests
133+
vars:
134+
TEST_TARGET: web
136135
- name: run-checks
137136
tags:
138137
- run-checks
@@ -177,7 +176,7 @@ buildvariants:
177176
- name: linux
178177
display_name: RHEL 8.0
179178
run_on: rhel80-small
180-
tasks: [".node"]
179+
tasks: [".node", ".web"]
181180
- name: lint
182181
display_name: lint
183182
run_on: rhel80-small

.evergreen/run-tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ case $1 in
1515
"node")
1616
npm run check:coverage
1717
;;
18-
"browser")
19-
# TODO(NODE-3555): remove explicit browser tests
20-
npm run test-browser
18+
"web")
19+
export WEB="true"
20+
npm run check:web
2121
;;
2222
*)
2323
npm test

.mocharc.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
"$schema": "https://github.com/raw/SchemaStore/schemastore/master/src/schemas/json/mocharc.json",
33
"require": [
44
"source-map-support/register",
5-
"ts-node/register",
6-
"./node_modules/chai/register-expect"
5+
"ts-node/register"
76
],
87
"extension": [
98
"js",

.nycrc.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
{
22
"extends": "@istanbuljs/nyc-config-typescript",
3+
"include": [
4+
"src/**/*"
5+
],
36
"reporter": [
47
"lcovonly",
58
"text-summary",
69
"html"
710
],
8-
"statements": 53,
9-
"branches": 38,
10-
"functions": 52,
11-
"lines": 54
11+
"statements": 81,
12+
"branches": 73,
13+
"functions": 76,
14+
"lines": 83
1215
}

karma.conf.js

Lines changed: 0 additions & 91 deletions
This file was deleted.

0 commit comments

Comments
 (0)