Skip to content

Commit 902f9d8

Browse files
committed
🐛 (tests) switch back to basic jest; fix tests (temp)
1 parent 351b53d commit 902f9d8

File tree

5 files changed

+32
-7
lines changed

5 files changed

+32
-7
lines changed

jest.config.js

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
1-
const { jsWithBabelESM: tsjPreset } = require('ts-jest/presets')
2-
31
module.exports = {
4-
preset: 'ts-jest',
52
transform: {
6-
...tsjPreset.transform
3+
'\\.(js|ts)$': [
4+
'babel-jest',
5+
{
6+
presets: ['@babel/preset-env', '@babel/preset-typescript'],
7+
plugins: [
8+
'@babel/plugin-transform-runtime',
9+
'@babel/plugin-proposal-class-properties',
10+
'@babel/plugin-proposal-object-rest-spread'
11+
]
12+
}
13+
]
714
},
815
// TODO: Fix coverage
916
collectCoverage: false,
10-
collectCoverageFrom: ['src/**', '!templates/**', '!example/**', '!.nuxt/**'],
11-
coveragePathIgnorePatterns: ['node_modules', '.nuxt']
17+
collectCoverageFrom: [],
18+
coveragePathIgnorePatterns: ['node_modules', '.nuxt'],
19+
transformIgnorePatterns: [
20+
'node_modules/(?!@docus/app/|nuxt-i18n|mdast-util-to-hast|unist-builder|detab|unist-util-position/*)'
21+
]
1222
}

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@docus/github",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "GitHub integration for Docus.",
55
"keywords": [
66
"nuxt",
@@ -61,6 +61,9 @@
6161
"eslint-plugin-nuxt": "^2.0.0",
6262
"eslint-plugin-prettier": "^3.4.0",
6363
"jest": "^27.0.6",
64+
"@babel/plugin-proposal-class-properties": "^7.14.5",
65+
"@babel/plugin-proposal-object-rest-spread": "^7.14.7",
66+
"@babel/plugin-transform-runtime": "latest",
6467
"playwright": "^1.13.0",
6568
"prettier": "^2.3.2",
6669
"ts-jest": "^27.0.4"
File renamed without changes.
File renamed without changes.

yarn.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,18 @@
852852
babel-plugin-polyfill-regenerator "^0.2.2"
853853
semver "^6.3.0"
854854

855+
"@babel/plugin-transform-runtime@latest":
856+
version "7.14.5"
857+
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.14.5.tgz#30491dad49c6059f8f8fa5ee8896a0089e987523"
858+
integrity sha512-fPMBhh1AV8ZyneiCIA+wYYUH1arzlXR1UMcApjvchDhfKxhy2r2lReJv8uHEyihi4IFIGlr1Pdx7S5fkESDQsg==
859+
dependencies:
860+
"@babel/helper-module-imports" "^7.14.5"
861+
"@babel/helper-plugin-utils" "^7.14.5"
862+
babel-plugin-polyfill-corejs2 "^0.2.2"
863+
babel-plugin-polyfill-corejs3 "^0.2.2"
864+
babel-plugin-polyfill-regenerator "^0.2.2"
865+
semver "^6.3.0"
866+
855867
"@babel/plugin-transform-shorthand-properties@^7.14.5":
856868
version "7.14.5"
857869
resolved "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.14.5.tgz"

0 commit comments

Comments
 (0)