| .eslintrc.mjs |
/*.js", "test/unit/* |
6708 |
- |
| .npmrc |
|
19 |
- |
| .nvmrc |
|
8 |
- |
| addon-jar.mn |
|
3928 |
- |
| AGENTS.md |
|
5546 |
- |
| bin |
|
|
- |
| build-newtab-bundles.py |
In CI the deps are provided by the newtab-node-modules toolchain task and
unpacked to $MOZ_FETCHES_DIR/newtab/node_modules, so the build stays hermetic
(no network access at build time). Returns that path if present. |
7432 |
- |
| CLAUDE.md |
|
11 |
- |
| common |
|
|
- |
| content-src |
|
|
- |
| data |
|
|
- |
| docs |
|
|
- |
| jest.config.mjs |
/*.test.js",
"<rootDir>/test/jest/* |
1300 |
- |
| karma.mc.config.js |
/*.js",
// The base directory of all source files (used for path resolution in webpack importing)
moduleResolveDirectory: __dirname,
// a RegEx matching all Cu.import statements of local files
resourcePathRegEx: /^resource:\/\/activity-stream\//,
coverageReportingPath: "logs/coverage/",
};
// When tweaking here, be sure to review the docs about the execution ordering
// semantics of the preprocessors array, as they are somewhat odd.
const preprocessors = {};
preprocessors[PATHS.testFilesPattern] = [
"webpack", // require("karma-webpack")
"sourcemap", // require("karma-sourcemap-loader")
];
module.exports = function (config) {
const isTDD = config.tdd;
const browsers = isTDD ? ["Firefox"] : ["FirefoxHeadless"]; // require("karma-firefox-launcher")
config.set({
singleRun: !isTDD,
browsers,
customLaunchers: {
FirefoxHeadless: {
base: "Firefox",
flags: ["--headless"],
},
},
frameworks: [
"chai", // require("chai") require("karma-chai")
"mocha", // require("mocha") require("karma-mocha")
"sinon", // require("sinon") require("karma-sinon")
],
reporters: [
"coverage-istanbul", // require("karma-coverage")
"mocha", // require("karma-mocha-reporter")
// for bin/try-runner.js to parse the output easily
"json", // require("karma-json-reporter")
],
jsonReporter: {
// So this doesn't get interleaved with other karma output
stdout: false,
outputFile: path.join("logs", "karma-run-results.json"),
},
coverageIstanbulReporter: {
reports: ["lcov", "text-summary"], // for some reason "lcov" reallys means "lcov" and "html"
"report-config": {
// so the full m-c path gets printed; needed for Searchfox integration
lcov: {
projectRoot: "../../..",
},
},
dir: PATHS.coverageReportingPath,
// This will make karma fail if coverage reporting is less than the minimums here
thresholds: !isTDD && {
each: {
statements: 100,
lines: 100,
functions: 100,
branches: 66,
overrides: {
"common/Reducers.sys.mjs": {
statements: 0,
lines: 0,
functions: 0,
branches: 0,
},
"content-src/components/Sections/Sections.jsx": {
statements: 0,
lines: 0,
functions: 0,
branches: 0,
},
"content-src/components/Card/Card.jsx": {
statements: 0,
lines: 0,
functions: 0,
branches: 0,
},
"content-src/components/CollapsibleSection/CollapsibleSection.jsx":
{
statements: 0,
lines: 0,
functions: 0,
branches: 0,
},
"content-src/components/ContextMenu/ContextMenu.jsx": {
statements: 0,
lines: 0,
functions: 0,
branches: 0,
},
"content-src/components/ConfirmDialog/ConfirmDialog.jsx": {
statements: 0,
lines: 0,
functions: 0,
branches: 0,
},
"content-src/components/LinkMenu/LinkMenu.jsx": {
statements: 0,
lines: 0,
functions: 0,
branches: 0,
},
"content-src/components/DiscoveryStreamBase/DiscoveryStreamBase.jsx":
{
statements: 0,
lines: 0,
functions: 0,
branches: 0,
},
"content-src/components/ActivationWindowMessage/ActivationWindowMessage.jsx":
{
statements: 0,
lines: 0,
functions: 0,
branches: 0,
},
/**
ErrorBoundary.jsx is tested via Jest (see test/jest/content-src/components/ErrorBoundary.test.jsx).
|
34517 |
- |
| lib |
|
|
- |
| mach_commands.py |
Desktop New Tab build and update utilities.
|
44417 |
- |
| manifest.json |
|
314 |
- |
| moz.build |
|
1205 |
- |
| package-lock.json |
|
913221 |
- |
| package.json |
|
4631 |
- |
| prerendered |
|
|
- |
| test |
|
|
- |
| webext-glue |
|
|
- |
| webpack.system-addon.config.js |
|
4318 |
- |
| yamscripts.yml |
|
2346 |
- |