@planningcenter/chat-react-native 3.31.0-rc.1 → 3.31.0-rc.2

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.
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Jest configuration helpers for consuming apps.
3
+ *
4
+ * Usage in jest.config.js:
5
+ *
6
+ * const { jestTransformPackages } = require('@planningcenter/chat-react-native/jest')
7
+ *
8
+ * const ignorePatterns = [
9
+ * ...yourPatterns,
10
+ * ...jestTransformPackages,
11
+ * ].join('|')
12
+ *
13
+ * module.exports = {
14
+ * transformIgnorePatterns: [`node_modules/(?!${ignorePatterns})`],
15
+ * }
16
+ */
17
+ export declare const jestTransformPackages: string[];
18
+ //# sourceMappingURL=jest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jest.d.ts","sourceRoot":"","sources":["../src/jest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,qBAAqB,UAAwD,CAAA"}
package/build/jest.js ADDED
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Jest configuration helpers for consuming apps.
3
+ *
4
+ * Usage in jest.config.js:
5
+ *
6
+ * const { jestTransformPackages } = require('@planningcenter/chat-react-native/jest')
7
+ *
8
+ * const ignorePatterns = [
9
+ * ...yourPatterns,
10
+ * ...jestTransformPackages,
11
+ * ].join('|')
12
+ *
13
+ * module.exports = {
14
+ * transformIgnorePatterns: [`node_modules/(?!${ignorePatterns})`],
15
+ * }
16
+ */
17
+ export const jestTransformPackages = ['@planningcenter/chat-react-native', '@fortawesome'];
18
+ //# sourceMappingURL=jest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jest.js","sourceRoot":"","sources":["../src/jest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,mCAAmC,EAAE,cAAc,CAAC,CAAA","sourcesContent":["/**\n * Jest configuration helpers for consuming apps.\n *\n * Usage in jest.config.js:\n *\n * const { jestTransformPackages } = require('@planningcenter/chat-react-native/jest')\n *\n * const ignorePatterns = [\n * ...yourPatterns,\n * ...jestTransformPackages,\n * ].join('|')\n *\n * module.exports = {\n * transformIgnorePatterns: [`node_modules/(?!${ignorePatterns})`],\n * }\n */\nexport const jestTransformPackages = ['@planningcenter/chat-react-native', '@fortawesome']\n"]}
package/jest.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./build/jest')
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@planningcenter/chat-react-native",
3
- "version": "3.31.0-rc.1",
3
+ "version": "3.31.0-rc.2",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
7
7
  "files": [
8
8
  "build",
9
9
  "src",
10
- "assets"
10
+ "assets",
11
+ "jest.js"
11
12
  ],
12
13
  "sideEffects": [
13
14
  "src/icons/font_awesome.ts",
@@ -63,5 +64,5 @@
63
64
  "react-native-url-polyfill": "^2.0.0",
64
65
  "typescript": "<5.6.0"
65
66
  },
66
- "gitHead": "3470ebcad160b1993e34b2f563c98c744d220ecf"
67
+ "gitHead": "a98992870b2d23326ff218e8a1210296f69789db"
67
68
  }
@@ -0,0 +1,7 @@
1
+ import { jestTransformPackages } from '../jest'
2
+
3
+ describe('jestTransformPackages', () => {
4
+ it('exports an array of package patterns', () => {
5
+ expect(jestTransformPackages).toEqual(['@planningcenter/chat-react-native', '@fortawesome'])
6
+ })
7
+ })
package/src/jest.ts ADDED
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Jest configuration helpers for consuming apps.
3
+ *
4
+ * Usage in jest.config.js:
5
+ *
6
+ * const { jestTransformPackages } = require('@planningcenter/chat-react-native/jest')
7
+ *
8
+ * const ignorePatterns = [
9
+ * ...yourPatterns,
10
+ * ...jestTransformPackages,
11
+ * ].join('|')
12
+ *
13
+ * module.exports = {
14
+ * transformIgnorePatterns: [`node_modules/(?!${ignorePatterns})`],
15
+ * }
16
+ */
17
+ export const jestTransformPackages = ['@planningcenter/chat-react-native', '@fortawesome']