Skip to content

Commit

Permalink
Add recorder features: webcam display, request/enumerate devices, des…
Browse files Browse the repository at this point in the history
…troy (#40)

Adds webcam display, request/enumerate devices, and destroy methods to recorder in record package.
---------
Co-authored-by: CJ Green <[email protected]>
  • Loading branch information
becky-gilbert authored Sep 16, 2024
1 parent 94efdde commit 8eb4c39
Show file tree
Hide file tree
Showing 21 changed files with 971 additions and 65 deletions.
1 change: 0 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export default [
},
rules: {
"jsdoc/tag-lines": "off",
"jsdoc/require-description-complete-sentence": "error",
"jsdoc/require-description": "error",
"jsdoc/require-hyphen-before-param-description": "error",
"jsdoc/require-jsdoc": [
Expand Down
7 changes: 6 additions & 1 deletion jest.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
module.exports.makePackageConfig = () => {
const config = require("@jspsych/config/jest").makePackageConfig(__dirname);
return {
...require("@jspsych/config/jest").makePackageConfig(__dirname),
...config,
transform: {
...config.transform,
"^.+\\.mustache$": "<rootDir>/../../jest.text.loader.js",
},
moduleNameMapper: { "@lookit/data": "<rootDir>/../../packages/data/src" },
coverageThreshold: {
global: {
Expand Down
7 changes: 7 additions & 0 deletions jest.text.loader.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
process(sourceText, sourcePath, options) {
return {
code: `module.exports = ${JSON.stringify(sourceText)};`,
};
},
};
Loading

0 comments on commit 8eb4c39

Please sign in to comment.