Skip to content

Commit d409821

Browse files
authored
Re-add check (#229)
* eslint fixes * readd skip * cr comments * remove commented tests
1 parent df4e80c commit d409821

Some content is hidden

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

41 files changed

+231
-266
lines changed

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@
77
"prebootstrap": "npm install",
88
"bootstrap": "lerna bootstrap --concurrency=1",
99
"clean": "lerna clean -y && rm -Rf node_modules",
10-
"check": "echo",
11-
"check-ci": "echo",
12-
"lint": "lerna run check --since HEAD --exclude-dependents",
10+
"check": "lerna run check --since HEAD --exclude-dependents",
11+
"check-ci": "lerna run check",
1312
"test": "lerna run test",
1413
"test-ci": "lerna run test-ci",
1514
"compile-ts": "lerna run compile-ts",
16-
"start-async": "lerna exec npm run start-async --scope @mongosh/cli-repl",
1715
"compile-cli": "lerna run compile-ts --scope @mongosh/cli-repl --include-dependencies",
1816
"prestart-cli": "npm run compile-cli",
1917
"start-cli": "lerna exec npm start --scope @mongosh/cli-repl",

packages/browser-repl/src/components/utils/inspect.spec.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,6 @@ describe('inspect', () => {
3737
inspect(undefined)
3838
).to.equal('undefined');
3939
});
40-
41-
it.skip('inspects Symbol', () => {
42-
expect(
43-
inspect(Symbol('123'))
44-
).to.equal('Symbol(123)');
45-
});
46-
47-
it.skip('inspects BigInt', () => {
48-
expect(
49-
// eslint-disable-next-line no-undef
50-
inspect(BigInt(1))
51-
).to.equal('1n');
52-
});
5340
});
5441

5542
context('with BSON types', () => {

packages/browser-runtime-core/src/interpreter/interpreter.spec.ts

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -159,23 +159,25 @@ describe('Interpreter', () => {
159159
).to.equal(3);
160160
});
161161

162-
it.skip('can redeclare a top level function as function', async() => {
163-
expect(
164-
await testEvaluate(
165-
'function f() { return 1; }',
166-
'function f() { return 2; }',
167-
'f()'
168-
)
169-
).to.equal(2);
170-
});
171-
172-
it.skip('can redeclare a top level function as var', async() => {
173-
expect(
174-
await testEvaluate(
175-
'function sum(a, b) { return a + b; }',
176-
'var sum = 1'
177-
)
178-
).to.equal(1);
162+
describe.skip('redeclare top level vars', () => {
163+
it('can redeclare a top level function as function', async() => {
164+
expect(
165+
await testEvaluate(
166+
'function f() { return 1; }',
167+
'function f() { return 2; }',
168+
'f()'
169+
)
170+
).to.equal(2);
171+
});
172+
173+
it('can redeclare a top level function as var', async() => {
174+
expect(
175+
await testEvaluate(
176+
'function sum(a, b) { return a + b; }',
177+
'var sum = 1'
178+
)
179+
).to.equal(1);
180+
});
179181
});
180182

181183
it('cannot re-declare a top level function as let', async() => {

packages/build/.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
lib
3+
coverage
4+

packages/build/.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('../../config/eslintrc.base');

packages/cli-repl/.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
bin
33
lib
4+
dist

packages/cli-repl/src/arg-mapper.spec.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,6 @@ describe('arg-mapper.mapCliToDriver', () => {
2323
});
2424
});
2525

26-
context('when cli args have disableImplicitSessions', () => {
27-
const cliOptions: CliOptions = { disableImplicitSessions: true };
28-
29-
it.skip('maps to explicitlyIgnoreSession', () => {
30-
expect(mapCliToDriver(cliOptions)).to.deep.equal({
31-
explicitlyIgnoreSession: true
32-
});
33-
});
34-
});
35-
3626
context('when cli args have quiet', () => {
3727
const cliOptions: CliOptions = { quiet: true };
3828

packages/i18n/.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
lib

packages/i18n/.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('../../config/eslintrc.base');

packages/i18n/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
"compile-ts": "tsc -p tsconfig.json",
1616
"prepublish": "npm run compile-ts",
1717
"test": "mocha --timeout 60000 --colors -r ts-node/register \"./src/**/*.spec.ts\"",
18-
"test-ci": "mocha --timeout 60000 -r ts-node/register \"./src/**/*.spec.ts\""
18+
"test-ci": "mocha --timeout 60000 -r ts-node/register \"./src/**/*.spec.ts\"",
19+
"lint": "eslint \"**/*.{js,ts,tsx}\"",
20+
"check": "npm run lint"
1921
},
2022
"license": "Apache-2.0",
2123
"publishConfig": {

0 commit comments

Comments
 (0)