Skip to content

Commit a1752b8

Browse files
Merge pull request #1221 from decaffeinate/fix/update-deps
fix(deps): upgrade dependencies
2 parents 41c8b8e + 5e10b90 commit a1752b8

23 files changed

+10218
-5306
lines changed

.circleci/config.yml

Lines changed: 14 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,62 @@
11
aliases:
2-
restore_cache_step: &restore_cache_step
3-
restore_cache:
4-
key: dependency-cache-{{ checksum "yarn.lock" }}
5-
save_cache_step: &save_cache_step
6-
save_cache:
7-
key: dependency-cache-{{ checksum "yarn.lock" }}
8-
paths:
9-
- ./node_modules
102
install_dependencies_step: &install_dependencies_step
113
run:
124
name: install-dependencies
13-
command: yarn install
5+
command: npm ci
146

157
unit_test: &unit_test
168
steps:
179
- checkout
18-
- *restore_cache_step
1910
- *install_dependencies_step
20-
- *save_cache_step
2111
- run:
2212
name: tests
23-
command: 'yarn test:ci'
13+
command: 'npm run test:ci'
2414
environment:
2515
JEST_JUNIT_OUTPUT: 'reports/junit/js-test-results.xml'
2616
- run:
2717
name: lint
28-
command: 'yarn lint'
18+
command: 'npm run lint'
2919
- store_test_results:
3020
path: reports/junit
3121
- store_artifacts:
3222
path: reports/junit
3323

3424
version: 2
3525
jobs:
36-
node-v10-latest:
37-
docker:
38-
- image: circleci/node:10
39-
<<: *unit_test
40-
node-v12-latest:
26+
node-v14-latest:
4127
docker:
42-
- image: circleci/node:12
28+
- image: cimg/node:14.19
4329
<<: *unit_test
44-
node-v13-latest:
30+
node-v16-latest:
4531
docker:
46-
- image: circleci/node:13
32+
- image: cimg/node:16.15
4733
<<: *unit_test
48-
node-v14-latest:
34+
node-v18-latest:
4935
docker:
50-
- image: circleci/node:14
36+
- image: cimg/node:18.3
5137
<<: *unit_test
5238
deploy:
5339
docker:
5440
- image: circleci/node:latest
5541
steps:
5642
- checkout
57-
- *restore_cache_step
5843
- *install_dependencies_step
59-
- *save_cache_step
6044
- run:
6145
name: Publish package
62-
command: 'yarn install && yarn build && npx semantic-release'
46+
command: 'npm ci && npm run build && npx semantic-release'
6347

6448
workflows:
6549
version: 2
6650
test-deploy:
6751
jobs:
68-
- node-v10-latest
69-
- node-v12-latest
70-
- node-v13-latest
7152
- node-v14-latest
53+
- node-v16-latest
54+
- node-v18-latest
7255
- deploy:
7356
requires:
74-
- node-v10-latest
75-
- node-v12-latest
76-
- node-v13-latest
7757
- node-v14-latest
58+
- node-v16-latest
59+
- node-v18-latest
7860
filters:
7961
branches:
8062
only: master

.eslintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"eslint:recommended",
44
"plugin:@typescript-eslint/recommended",
55
"plugin:jest/all",
6-
"prettier",
7-
"prettier/@typescript-eslint"
6+
"prettier"
87
],
98
"env": {
109
"es6": true,
@@ -16,6 +15,7 @@
1615
},
1716
"plugins": ["prettier", "jest", "@typescript-eslint/eslint-plugin"],
1817
"rules": {
18+
"jest/require-hook": "off",
1919
"no-unused-vars": "off",
2020
"@typescript-eslint/camelcase": "off",
2121
"@typescript-eslint/no-unused-vars": "error",

.github/dependabot.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
version: 2
22
updates:
3-
- package-ecosystem: npm
4-
directory: "/"
5-
schedule:
6-
interval: daily
7-
open-pull-requests-limit: 10
8-
ignore:
9-
- dependency-name: "@babel/types"
10-
versions:
11-
- 7.13.16
12-
- dependency-name: eslint-config-prettier
13-
versions:
14-
- 8.0.0
15-
- 8.1.0
16-
- 8.2.0
17-
- dependency-name: eslint-plugin-jest
18-
versions:
19-
- 24.1.4
3+
- package-ecosystem: npm
4+
directory: '/'
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10
8+
ignore:
9+
- dependency-name: '@babel/types'
10+
versions:
11+
- 7.13.16
12+
- dependency-name: eslint-config-prettier
13+
versions:
14+
- 8.0.0
15+
- 8.1.0
16+
- 8.2.0
17+
- dependency-name: eslint-plugin-jest
18+
versions:
19+
- 24.1.4

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.yarnrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

jest.config.js

Lines changed: 4 additions & 173 deletions
Original file line numberDiff line numberDiff line change
@@ -1,178 +1,9 @@
11
// For a detailed explanation regarding each configuration property, visit:
22
// https://jestjs.io/docs/en/configuration.html
33

4+
/**
5+
* @type {import('@jest/types').Config.InitialOptions}
6+
*/
47
module.exports = {
5-
// All imported modules in your tests should be mocked automatically
6-
// automock: false,
7-
8-
// Stop running tests after the first failure
9-
// bail: false,
10-
11-
// Respect "browser" field in package.json when resolving modules
12-
// browser: false,
13-
14-
// The directory where Jest should store its cached dependency information
15-
// cacheDirectory: "/var/folders/1n/hxkwxdt95zzgp53y_5ng4gy40000gn/T/jest_dx",
16-
17-
// Automatically clear mock calls and instances between every test
18-
clearMocks: true,
19-
20-
// Indicates whether the coverage information should be collected while executing the test
21-
// collectCoverage: false,
22-
23-
// An array of glob patterns indicating a set of files for which coverage information should be collected
24-
// collectCoverageFrom: null,
25-
26-
// The directory where Jest should output its coverage files
27-
coverageDirectory: 'coverage',
28-
29-
// An array of regexp pattern strings used to skip coverage collection
30-
// coveragePathIgnorePatterns: [
31-
// "/node_modules/"
32-
// ],
33-
34-
// A list of reporter names that Jest uses when writing coverage reports
35-
// coverageReporters: [
36-
// "json",
37-
// "text",
38-
// "lcov",
39-
// "clover"
40-
// ],
41-
42-
// An object that configures minimum threshold enforcement for coverage results
43-
// coverageThreshold: null,
44-
45-
// Make calling deprecated APIs throw helpful error messages
46-
// errorOnDeprecated: false,
47-
48-
// Force coverage collection from ignored files usin a array of glob patterns
49-
// forceCoverageMatch: [],
50-
51-
// A path to a module which exports an async function that is triggered once before all test suites
52-
// globalSetup: null,
53-
54-
// A path to a module which exports an async function that is triggered once after all test suites
55-
// globalTeardown: null,
56-
57-
// A set of global variables that need to be available in all test environments
58-
globals: {
59-
'ts-jest': {
60-
tsConfig: 'tsconfig.json',
61-
},
62-
},
63-
64-
// An array of directory names to be searched recursively up from the requiring module's location
65-
// moduleDirectories: [
66-
// "node_modules"
67-
// ],
68-
69-
// An array of file extensions your modules use
70-
moduleFileExtensions: ['ts', 'tsx', 'js'],
71-
72-
// A map from regular expressions to module names that allow to stub out resources with a single module
73-
// moduleNameMapper: {},
74-
75-
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
76-
// modulePathIgnorePatterns: [],
77-
78-
// Activates notifications for test results
79-
// notify: false,
80-
81-
// An enum that specifies notification mode. Requires { notify: true }
82-
// notifyMode: "always",
83-
84-
// A preset that is used as a base for Jest's configuration
85-
// preset: null,
86-
87-
// Run tests from one or more projects
88-
// projects: null,
89-
90-
// Use this configuration option to add custom reporters to Jest
91-
// reporters: undefined,
92-
93-
// Automatically reset mock state between every test
94-
// resetMocks: false,
95-
96-
// Reset the module registry before running each individual test
97-
// resetModules: false,
98-
99-
// A path to a custom resolver
100-
// resolver: null,
101-
102-
// Automatically restore mock state between every test
103-
// restoreMocks: false,
104-
105-
// The root directory that Jest should scan for tests and modules within
106-
// rootDir: null,
107-
108-
// A list of paths to directories that Jest should use to search for files in
109-
// roots: [
110-
// "<rootDir>"
111-
// ],
112-
113-
// Allows you to use a custom runner instead of Jest's default test runner
114-
// runner: "jest-runner",
115-
116-
// The paths to modules that run some code to configure or set up the testing environment before each test
117-
// setupFiles: [],
118-
119-
// The path to a module that runs some code to configure or set up the testing framework before each test
120-
// setupTestFrameworkScriptFile: null,
121-
122-
// A list of paths to snapshot serializer modules Jest should use for snapshot testing
123-
// snapshotSerializers: [],
124-
125-
// The test environment that will be used for testing
126-
testEnvironment: 'node',
127-
128-
// Options that will be passed to the testEnvironment
129-
// testEnvironmentOptions: {},
130-
131-
// Adds a location field to test results
132-
// testLocationInResults: false,
133-
134-
// The glob patterns Jest uses to detect test files
135-
testMatch: ['<rootDir>/test/**/*.test.+(ts|tsx|js)'],
136-
137-
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
138-
// testPathIgnorePatterns: [
139-
// "/node_modules/"
140-
// ],
141-
142-
// The regexp pattern Jest uses to detect test files
143-
// testRegex: "",
144-
145-
// This option allows the use of a custom results processor
146-
// testResultsProcessor: null,
147-
148-
// This option allows use of a custom test runner
149-
// testRunner: "jasmine2",
150-
151-
// This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
152-
// testURL: "http://localhost",
153-
154-
// Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"
155-
// timers: "real",
156-
157-
// A map from regular expressions to paths to transformers
158-
transform: {
159-
'^.+\\.(ts|tsx)$': 'ts-jest',
160-
},
161-
162-
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
163-
// transformIgnorePatterns: [
164-
// "/node_modules/"
165-
// ],
166-
167-
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
168-
// unmockedModulePathPatterns: undefined,
169-
170-
// Indicates whether each individual test should be reported during the run
171-
// verbose: null,
172-
173-
// An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
174-
// watchPathIgnorePatterns: [],
175-
176-
// Whether to use watchman for file crawling
177-
// watchman: true,
8+
preset: 'ts-jest',
1789
};

0 commit comments

Comments
 (0)