WomenInSoftwareEngineeringJP / home

Home page for our new organization
https://womeninsoftware.jp/
2 stars 3 forks source link

Clean up unit test log #55

Open ann-kilzer opened 2 months ago

ann-kilzer commented 2 months ago

When running the unit tests npm run test there is a lot of noise from stdout like:

stdout | Object.output (file:/Users/annkilzer/dev/wwcode_tokyo/home/node_modules/i18next/dist/esm/i18next.js:13:49)
i18next: languageChanged en
i18next: initialized {
  debug: true,
  initImmediate: true,
  ns: [ 'translation' ],
  defaultNS: [ 'translation' ],
  fallbackLng: [ 'dev' ],
  fallbackNS: false,
  supportedLngs: false,
  nonExplicitSupportedLngs: false,
  load: 'all',
  preload: false,
  simplifyPluralSuffix: true,
  keySeparator: '.',
  nsSeparator: ':',
  pluralSeparator: '_',
  contextSeparator: '_',
  partialBundledLanguages: false,
  saveMissing: false,
  updateMissing: false,
  saveMissingTo: 'fallback',
  saveMissingPlurals: true,
  missingKeyHandler: false,
  missingInterpolationHandler: false,
  postProcess: false,
  postProcessPassResolved: false,
  returnNull: false,
  returnEmptyString: true,
  returnObjects: false,
  joinArrays: false,
  returnedObjectHandler: false,
  parseMissingKeyHandler: false,
  appendNamespaceToMissingKey: false,
  appendNamespaceToCIMode: false,
  overloadTranslationOptionHandler: [Function: handle],
  interpolation: {
    escapeValue: true,
    format: [Function: bound format],
    prefix: '{{',
    suffix: '}}',
    formatSeparator: ',',
    unescapePrefix: '-',
    nestingPrefix: '$t(',
    nestingSuffix: ')',
    nestingOptionsSeparator: ',',
    maxReplaces: 1000,
    skipOnVariables: true
  },
  lng: 'en',
  resources: { en: { translation: [Object] }, ja: { translation: [Object] } },
  ignoreJSONStructure: true
}

It would be better to turn this off. Additionally, feel free to add an eslint rule to warn on any console.log statements to prevent this in the future