Skip to content

Commit

Permalink
fix: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatiny committed Apr 3, 2023
1 parent 332456a commit afaf632
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 22 deletions.
35 changes: 15 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@
"prepack": "npm run tsc",
"prettier": "prettier --check src",
"prettier-write": "prettier --write src",
"test": "npm run test-coverage && npm run eslint",
"test-coverage": "npm run test-only -- --coverage",
"test-only": "jest",
"test": "npm run test-only && npm run eslint && npm run prettier",
"test-only": "vitest run --coverage",
"tsc": "npm run clean && npm run tsc-cjs && npm run tsc-esm",
"tsc-cjs": "tsc --project tsconfig.cjs.json",
"tsc-esm": "tsc --project tsconfig.esm.json"
Expand All @@ -36,10 +35,6 @@
"url": "https://github.com/cheminfo/ndim-parser/issues"
},
"homepage": "https://github.com/cheminfo/ndim-parser#readme",
"jest": {
"preset": "ts-jest",
"testEnvironment": "node"
},
"prettier": {
"arrowParens": "always",
"semi": true,
Expand All @@ -51,18 +46,18 @@
"cheminfo-types": "^1.4.0"
},
"devDependencies": {
"@types/jest": "^29.2.3",
"@typescript-eslint/eslint-plugin": "^5.43.0",
"@typescript-eslint/parser": "^5.43.0",
"eslint": "^8.27.0",
"eslint-config-cheminfo-typescript": "^11.2.2",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.1.5",
"eslint-plugin-jsdoc": "^39.6.2",
"jest": "^29.3.1",
"prettier": "^2.7.1",
"rimraf": "^3.0.2",
"ts-jest": "^29.0.3",
"typescript": "^4.9.3"
"@types/jest": "^29.5.0",
"@typescript-eslint/eslint-plugin": "^5.57.0",
"@typescript-eslint/parser": "^5.57.0",
"@vitest/coverage-c8": "^0.29.8",
"eslint": "^8.37.0",
"eslint-config-cheminfo-typescript": "^11.3.1",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-jsdoc": "^40.1.1",
"prettier": "^2.8.7",
"rimraf": "^4.4.1",
"typescript": "^5.0.3",
"vitest": "^0.29.8"
}
}
2 changes: 2 additions & 0 deletions src/__tests__/appended.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { readFileSync } from 'fs';
import { join } from 'path';

import { test, expect } from 'vitest';

import { appendedParser } from '..';

test('multiple breakdown', () => {
Expand Down
6 changes: 4 additions & 2 deletions src/__tests__/general.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { readFileSync } from 'fs';
import { join } from 'path';

import { test, expect } from 'vitest';

import { ndParse } from '..';

const simpleExample = `
Expand Down Expand Up @@ -58,7 +60,7 @@ test('real file', () => {
'latin1',
);
const parsed = ndParse(csv);
const keys = ['x', 'y', 'G', 'Q', 'C', 'A', 'I', 'F', 'B'];
const keys = ['x', 'y', 'G', 'Q', 'C', 'a', 'I', 'F', 'b'];
expect(parsed.meta?.['Channel.Mode']).toBe('V');
expect(Object.keys(parsed.variables)).toStrictEqual(keys);
});
Expand All @@ -69,6 +71,6 @@ test('breakdown', () => {
'latin1',
);
const parsed = ndParse(csv, { isTagged: true });
const keys = ['x', 'y', 'I', 'A', 'B', 'C'];
const keys = ['x', 'y', 'I', 'a', 'b', 'c'];
expect(Object.keys(parsed.variables)).toStrictEqual(keys);
});
2 changes: 2 additions & 0 deletions src/__tests__/utils.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { test, expect } from 'vitest';

import { isNumericRow } from '../utils';

test('isNumericRow', () => {
Expand Down

0 comments on commit afaf632

Please sign in to comment.