@papillonarts/setup 0.37.0 → 0.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/jest/config.d.ts.map +1 -1
- package/build/jest/config.js +3 -11
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/jest/config.ts"],"names":[],"mappings":"AAqGA,eAAO,MAAM,uBAAuB,UAAyD,CAAA;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/jest/config.ts"],"names":[],"mappings":"AAqGA,eAAO,MAAM,uBAAuB,UAAyD,CAAA;AAE7F,wBAAgB,YAAY,CAAC,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,eAAe,EAAE,mBAAmB,EAAE,iBAAiB,EAAE;;;;;;CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BlI"}
|
package/build/jest/config.js
CHANGED
|
@@ -13,9 +13,6 @@ var _jestConfig = require("jest-config");
|
|
|
13
13
|
|
|
14
14
|
var transformIgnorePackages = ['bail', 'ccount', 'character-entities', 'character-entities-legacy', 'character-reference-invalid', 'comma-separated-tokens', 'decode-named-character-reference', 'devlop', 'escape-string-regexp', 'estree-util-is-identifier-name', 'hast-util-parse-selector', 'hast-util-to-jsx-runtime', 'hast-util-whitespace', 'hastscript', 'html-url-attributes', 'is-alphabetical', 'is-alphanumerical', 'is-blank', 'is-decimal', 'is-hexadecimal', 'is-plain-obj', 'is-whitespace-like', 'jsdom/node_modules/parse5', 'longest-streak', 'markdown-table', 'mdast-util-find-and-replace', 'mdast-util-find-and-replace/node_modules/escape-string-regexp', 'mdast-util-from-markdown', 'mdast-util-gfm', 'mdast-util-gfm-autolink-literal', 'mdast-util-gfm-footnote', 'mdast-util-gfm-strikethrough', 'mdast-util-gfm-table', 'mdast-util-gfm-task-list-item', 'mdast-util-mdx-expression', 'mdast-util-mdx-jsx', 'mdast-util-mdxjs-esm', 'mdast-util-phrasing', 'mdast-util-to-hast', 'mdast-util-to-markdown', 'mdast-util-to-string', 'micromark', 'micromark-core-commonmark', 'micromark-extension-gfm', 'micromark-extension-gfm-autolink-literal', 'micromark-extension-gfm-footnote', 'micromark-extension-gfm-strikethrough', 'micromark-extension-gfm-table', 'micromark-extension-gfm-tagfilter', 'micromark-extension-gfm-task-list-item', 'micromark-factory-destination', 'micromark-factory-label', 'micromark-factory-space', 'micromark-factory-title', 'micromark-factory-whitespace', 'micromark-util-character', 'micromark-util-chunked', 'micromark-util-classify-character', 'micromark-util-combine-extensions', 'micromark-util-decode-numeric-character-reference', 'micromark-util-decode-string', 'micromark-util-encode', 'micromark-util-html-tag-name', 'micromark-util-normalize-identifier', 'micromark-util-resolve-all', 'micromark-util-sanitize-uri', 'micromark-util-subtokenize', 'micromark-util-symbol', 'micromark-util-types', 'parse-entities', 'parse5', 'property-information', 'react-markdown', 'react-syntax-highlighter', 'refractor', 'remark-gfm', 'remark-parse', 'remark-rehype', 'remark-stringify', 'space-separated-tokens', 'trim-lines', 'trough', 'unified', 'unified/node_modules/is-plain-obj', 'unist-util-is', 'unist-util-position', 'unist-util-stringify-position', 'unist-util-visit', 'unist-util-visit-parents', 'uuid', 'vfile', 'vfile-message', 'zwitch'].join('|');
|
|
15
15
|
var transformIgnorePatterns = exports.transformIgnorePatterns = ["node_modules/(?!((@)?".concat(transformIgnorePackages, ")/)")];
|
|
16
|
-
// https://stackoverflow.com/questions/72382316/jest-encountered-an-unexpected-token-react-markdown
|
|
17
|
-
// export const transformIgnorePatterns = [`[/\\\\]node_modules[/\\\\](?!${transformIgnorePackages}).+\\.(js|jsx|mjs|cjs|ts|tsx)$`]
|
|
18
|
-
|
|
19
16
|
function getJestSetup(_ref) {
|
|
20
17
|
var testPathIgnorePatterns = _ref.testPathIgnorePatterns,
|
|
21
18
|
coverageDirectory = _ref.coverageDirectory,
|
|
@@ -27,12 +24,7 @@ function getJestSetup(_ref) {
|
|
|
27
24
|
testPathIgnorePatterns: testPathIgnorePatterns,
|
|
28
25
|
roots: ['<rootDir>'],
|
|
29
26
|
transform: {
|
|
30
|
-
|
|
31
|
-
'^.+\\.(js|jsx|ts|tsx)$': ['babel-jest', {
|
|
32
|
-
excludeJestPreset: true
|
|
33
|
-
}],
|
|
34
|
-
// https://jestjs.io/docs/code-transformation
|
|
35
|
-
'^.+\\.md$': '<rootDir>/.mock/markdownTransformer.js'
|
|
27
|
+
'^.+\\.(js|jsx|ts|tsx)$': 'babel-jest'
|
|
36
28
|
},
|
|
37
29
|
coverageDirectory: coverageDirectory,
|
|
38
30
|
collectCoverage: collectCoverage,
|
|
@@ -42,8 +34,8 @@ function getJestSetup(_ref) {
|
|
|
42
34
|
// https://jest-extended.jestcommunity.dev/docs/matchers
|
|
43
35
|
setupFilesAfterEnv: ['<rootDir>/jest.setup.js', 'jest-extended/all'],
|
|
44
36
|
moduleNameMapper: {
|
|
45
|
-
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/.mock/file.js',
|
|
46
|
-
'^.+\\.(css|less|scss)$': 'identity-obj-proxy'
|
|
37
|
+
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|md)$': '<rootDir>/.mock/file.js',
|
|
38
|
+
'^.+\\.(css|less|scss|md)$': 'identity-obj-proxy'
|
|
47
39
|
},
|
|
48
40
|
// https://jestjs.io/docs/tutorial-react-native#transformignorepatterns-customization
|
|
49
41
|
transformIgnorePatterns: transformIgnorePatterns,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@papillonarts/setup",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.0",
|
|
4
4
|
"description": "Papillon Arts Setup",
|
|
5
5
|
"homepage": "https://github.com/papillonarts/papillonarts/tree/master/packages/setup",
|
|
6
6
|
"repository": {
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"build-acceptance": "npm run build",
|
|
38
38
|
"build-release": "npm run build"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "af44ef015fbdee8b28e2dfbe647d8587e4307ce6"
|
|
41
41
|
}
|