Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
timothy-b committed Nov 14, 2024
1 parent eb0200b commit d1ef62b
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 6 deletions.
4 changes: 0 additions & 4 deletions packages/service/jest.config.js

This file was deleted.

4 changes: 2 additions & 2 deletions packages/service/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default {
// notifyMode: "failure-change",

// A preset that is used as a base for Jest's configuration
// preset: undefined,
preset: 'ts-jest',

// Run tests from one or more projects
// projects: undefined,
Expand Down Expand Up @@ -150,7 +150,7 @@ export default {
// "**/__tests__/**/*.[jt]s?(x)",
// "**/?(*.)+(spec|test).[tj]s?(x)"
// ],
testMatch: ['**/tests/*test.[jt]s'],
testMatch: ['**/tests/*test.[jt]s']

// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
// testPathIgnorePatterns: [
Expand Down
53 changes: 53 additions & 0 deletions src/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
'use strict';
exports.__esModule = true;
var Config = {
knownPortableDevices: [
{
mac: '24:46:C8:C1:50:9D',
name: 'Tim',
emailAddress: '[email protected]',
},
{
mac: '40:4E:36:89:4F:70',
name: 'Bryan',
emailAddress: null,
},
],
localhost: {
port: 3000,
},
emailServer: {
user: '[email protected]',
password: 'D3vG00gl3',
host: 'smtp.gmail.com',
ssl: true,
},
emailConfig: {
from: 'Timothy Baumgartner <[email protected]>',
ssl: true,
port: 465,
subject: '',
},
okResponseBody:
'\n\t<!DOCTYPE "html">\n\t<html>\n\t\t<head>\n\t\t\t<title>Hello World Page</title>\n\t\t</head>\n\t\t<body>\n\t\t\tHello World!\n\t\t</body>\n\t</html>\n\t',
basicAuthentication: {
enabled: true,
username: 'iotsec',
password: 'CNQ62KU65aqTe2LV4Jhwsn6PsSdLzGH4',
},
bunyan: {
name: 'IOTSEC',
streams: [
{
level: 'info',
stream: process.stdout,
},
{
level: 'info',
path: '/var/log/iotsec.log',
},
],
src: true,
},
};
exports['default'] = Config;

0 comments on commit d1ef62b

Please sign in to comment.