Skip to content

Commit 1373860

Browse files
Fix testpack import transformations
Otherwise testpack creates paths like "strings-to-regex/types/charTrie" which are invalid without the "lib" sub-directory.
1 parent 0008963 commit 1373860

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- run: npm run lint
3636
- run: npm run build
3737
- run: npm run test
38-
- run: npx testpack-cli --keep={jest-when,regex-to-strings,ts-jest,typescript} **/*.spec.ts
38+
- run: npx testpack-cli --keep={jest-when,regex-to-strings,ts-jest,typescript} -r={|\.\.?|$P|,|\.\.?([\/\\].*)|$P/lib$1|} **/*.spec.ts
3939

4040
- name: Upload test coverage report to Codecov
4141
uses: codecov/codecov-action@v1

demo/src/demo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { condense, condenseIgnoreCase } from '../../src/index';
1+
import { condense, condenseIgnoreCase } from '../../src';
22
import { autoExpandTextarea } from './utils/auto-expand-field';
33
import { parseString, WhitespaceHandling } from './utils/wordList';
44

src/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { when } from 'jest-when';
22
import { CharTrie } from './types/charTrie';
33
import * as patternUtils from './utils/pattern';
44
import * as trieUtils from './utils/trie';
5-
import { condense, condenseIgnoreCase } from './index';
5+
import { condense, condenseIgnoreCase } from '.';
66

77
describe('condense', () => {
88
it('builds pattern from trie of words', () => {

0 commit comments

Comments
 (0)