Skip to content

Commit 4b755e7

Browse files
authored
Merge pull request #1337 from pact-foundation/chore/upgrade-libraries_typescript-chai
Upgrade libraries and fix tests
2 parents 8874e0c + e0433db commit 4b755e7

28 files changed

+288
-244
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ jobs:
113113
node-version: ${{ matrix.node-version }}
114114
cache: npm
115115

116+
- name: Set NodeJS scripts shell
117+
if: startsWith(matrix.os, 'windows')
118+
run: npm config set script-shell "C:\\Program Files\\git\\bin\\bash.exe"
119+
116120
- name: Install dependencies
117121
run: |
118122
npm ci
@@ -271,6 +275,14 @@ jobs:
271275
node-version: ${{ env.STABLE_NODE_VERSION }}
272276
cache: npm
273277

278+
# Temporary fix for lodash issue. This step should be removed eventually
279+
# once a better solution is found.
280+
- name: Install dependencies
281+
run: npm ci
282+
283+
- name: Install plugins
284+
run: npm run install-plugins
285+
274286
- name: Download dist folder
275287
uses: actions/download-artifact@v4
276288
with:

.nycrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"instrument": true,
66
"lines": 50,
77
"reporter": ["text-summary", "html", "lcov"],
8-
"require": ["tsx"],
98
"sourceMap": true,
109
"statements": 50
1110
}

examples/graphql/src/consumer.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* tslint:disable:no-unused-expression object-literal-sort-keys max-classes-per-file no-empty */
2-
import chai from 'chai';
2+
import * as chai from 'chai';
33
import * as path from 'path';
44
import chaiAsPromised from 'chai-as-promised';
55
import { query } from './consumer';

examples/typescript/test/get-dog.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* tslint:disable:no-unused-expression object-literal-sort-keys max-classes-per-file no-empty */
2-
import chai from 'chai';
2+
import * as chai from 'chai';
33
import chaiAsPromised from 'chai-as-promised';
44
import path = require('path');
55
import sinonChai from 'sinon-chai';

examples/v3/typescript/test/user.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import chai from 'chai';
1+
import * as chai from 'chai';
22
import chaiAsPromised from 'chai-as-promised';
33
import sinonChai from 'sinon-chai';
44
import { PactV3, MatchersV3, LogLevel } from '@pact-foundation/pact';

examples/v4/matchers/consumer.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* tslint:disable:no-unused-expression no-empty */
2-
import chai from 'chai';
2+
import * as chai from 'chai';
33
import chaiAsPromised from 'chai-as-promised';
44
import {
55
SpecificationVersion,

examples/v4/plugins/test/matt.consumer.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* tslint:disable:no-unused-expression no-empty */
2-
import chai from 'chai';
2+
import * as chai from 'chai';
33
import chaiAsPromised from 'chai-as-promised';
44
import { SpecificationVersion, PactV4, LogLevel } from '@pact-foundation/pact';
55
import net = require('net');

0 commit comments

Comments
 (0)