
* switch to esm module * Update package.json * change to maplibre package * fix tests * eslint * remove extra package updates * Delete package-lock.json * change 'fs' to 'node:fs' * put back node 10. without the package updates this still works * remove trailing commas * remove unassociated fix / formatting * remove unassociated fix * remove eslint from this PR * remove unassociated fix * lint * Merge remote-tracking branch 'upstream/master' into esm_update * fix mlgl * update maplibre-native to new version with arm64 * update minor version
28 lines
617 B
JavaScript
28 lines
617 B
JavaScript
process.env.NODE_ENV = 'test';
|
|
|
|
import {expect} from 'chai';
|
|
import supertest from 'supertest';
|
|
import {server} from '../src/server.js';
|
|
|
|
global.expect = expect;
|
|
global.supertest = supertest;
|
|
|
|
before(function() {
|
|
console.log('global setup');
|
|
process.chdir('test_data');
|
|
const running = server({
|
|
configPath: 'config.json',
|
|
port: 8888,
|
|
publicUrl: '/test/'
|
|
});
|
|
global.app = running.app;
|
|
global.server = running.server;
|
|
return running.startupPromise;
|
|
});
|
|
|
|
after(function() {
|
|
console.log('global teardown');
|
|
global.server.close(function() {
|
|
console.log('Done'); process.exit();
|
|
});
|
|
});
|