<commit_before>const chai = require('chai')
const _ = require('lodash')
const fs = require('fs')
const path = require('path')
const {
  modulesWithKeyword,
  checkForNewServerVersion,
  getLatestServerVersion
} = require('./modules')

const expectedModules = [
  '@signalk/freeboard-sk',
  '@signalk/instrumentpanel',
  '@signalk/maptracker',
  '@signalk/playground',
  '@signalk/sailgauge',
  '@signalk/simplegauges'
]

const testTempDir = path.join(
  require('os').tmpdir(),
  '_skservertest_modules' + Date.now()
)

const app = {
  config: {
    appPath: path.join(__dirname + '/../'),
    configPath: testTempDir
  }
}

fs.mkdirSync(testTempDir)
const tempNodeModules = path.join(testTempDir, 'node_modules/')
fs.mkdirSync(path.join(testTempDir, 'node_modules'))
fs.mkdirSync(path.join(testTempDir, 'node_modules/@signalk'))
const configMaptrackerDirectory = path.join(
  testTempDir,
  'node_modules/@signalk/maptracker'
)
fs.mkdirSync(configMaptrackerDirectory)

const maptrackerPkg = require(path.join(<commit_msg>tests: remove playground from modules test<commit_after>const chai = require('chai')
const _ = require('lodash')
const fs = require('fs')
const path = require('path')
const {
  modulesWithKeyword,
  checkForNewServerVersion,
  getLatestServerVersion
} = require('./modules')

const expectedModules = [
  '@signalk/freeboard-sk',
  '@signalk/instrumentpanel',
  '@signalk/maptracker',
  '@signalk/sailgauge',
  '@signalk/simplegauges'
]

const testTempDir = path.join(
  require('os').tmpdir(),
  '_skservertest_modules' + Date.now()
)

const app = {
  config: {
    appPath: path.join(__dirname + '/../'),
    configPath: testTempDir
  }
}

fs.mkdirSync(testTempDir)
const tempNodeModules = path.join(testTempDir, 'node_modules/')
fs.mkdirSync(path.join(testTempDir, 'node_modules'))
fs.mkdirSync(path.join(testTempDir, 'node_modules/@signalk'))
const configMaptrackerDirectory = path.join(
  testTempDir,
  'node_modules/@signalk/maptracker'
)
fs.mkdirSync(configMaptrackerDirectory)

const maptrackerPkg = require(path.join(
{'fraction_non_alphanumeric': 0.146484375, 'fraction_numerical': 0.0, 'mean_word_length': 5.696078431372549, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1314283', 'n_tokens_mistral': 715, 'n_tokens_neox': 723, 'n_words': 113}