forked from bldrs-ai/Share
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Markdown & Project links (bldrs-ai#280)
* Rename IssueControl.test to match under-test IssuesControl. * comments: enhance comment display adding react-markdown support. Many new es6 module deps were introduced, which prompted a new approach for jest config. Not sure how best to handle this but works for now. * Change project link in test GitHub message to inlined markdown. Always suffix imported icons with "Icon". Remove defunct ShareMenu.jsx * More suffixing imported icons with "Icon". Fix repo log message. * css: restore link styling in issues and comments. * markdown: shrink comment body a bit to restore view showing just first two lines.
- Loading branch information
1 parent
2d23baf
commit 70c13f0
Showing
13 changed files
with
1,116 additions
and
441 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
module.exports = { | ||
'presets': [ | ||
presets: [ | ||
'@babel/preset-env', | ||
'@babel/preset-react' | ||
'@babel/preset-react', | ||
], | ||
'env': { | ||
'test': { | ||
'presets': [ | ||
['@babel/preset-env', { 'targets': { 'node': 'current' } }], | ||
env: { | ||
test: { | ||
presets: [ | ||
['@babel/preset-env', {targets: {node: 'current'}}], | ||
], | ||
}, | ||
} | ||
}, | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/** | ||
* TODO(pablo): this is a work-around for jest not understanding es6 | ||
* modules. I don't really understand the problem, just that this | ||
* works. | ||
*/ | ||
const esModules = [ | ||
'@bldrs-ai', | ||
'bail', | ||
'comma-separated-tokens', | ||
'decode-named-character-reference', | ||
'hast-util-whitespace', | ||
'is-plain-obj', | ||
'mdast-util-definitions', | ||
'mdast-util-from-markdown', | ||
'mdast-util-to-hast', | ||
'mdast-util-to-string', | ||
'micromark', | ||
'property-information', | ||
'space-separated-tokens', | ||
'remark-rehype', | ||
'react-markdown', | ||
'remark-parse', | ||
'three', | ||
'trim-lines', | ||
'trough', | ||
'unified', | ||
'unist-builder', | ||
'unist-util-generated', | ||
'unist-util-is', | ||
'unist-util-position', | ||
'unist-util-stringify-position', | ||
'unist-util-visit', | ||
'vfile', | ||
'vfile-message', | ||
'web-ifc', | ||
'web-ifc-three', | ||
'web-ifc-viewer', | ||
].join('|') | ||
|
||
|
||
module.exports = { | ||
verbose: false, | ||
testEnvironment: 'jsdom', | ||
testPathIgnorePatterns: [ | ||
'src/Share.test.js', | ||
], | ||
transform: { | ||
'\\.[jt]sx?$': 'babel-jest', | ||
'^.+\\.svg$': '<rootDir>/svgTransform.js', | ||
}, | ||
transformIgnorePatterns: [ | ||
`/node_modules/(?!${esModules}/)`, | ||
], | ||
moduleNameMapper: { | ||
'^.+\\.css$': 'identity-obj-proxy', | ||
}, | ||
setupFilesAfterEnv: [ | ||
'<rootDir>/src/setupTests.js', | ||
'@alex_neo/jest-expect-message', | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.