Skip to content

Commit

Permalink
skip dynmap tests while nova is bugged
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen3H committed Jul 5, 2024
1 parent 2cbf505 commit 7eb4695
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/dynmap/gps.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { describe, it, expect } from 'vitest'

import { Nova } from '../../src/main'

describe('[Dynmap/Nova] GPS', () => {
describe.skip('[Dynmap/Nova] GPS', () => {
const sampleLoc = { x: -8000, z: 100 }

it('can find the safest route', async () => {
Expand Down
4 changes: 2 additions & 2 deletions tests/dynmap/nations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import type { Nation } from '../../src/types'

import { Nova } from '../../src/main'

describe('[Dynmap/Nova] Nations', () => {
describe.skip('[Dynmap/Nova] Nations', () => {
it('can get all nations', async () => {
const nations = await Nova.Nations.all()
assertType<Nation[]>(nations)
})

it('can get single nation', async () => {
const nation = await Nova.Nations.get('sudan')
const nation = await Nova.Nations.get('sudan') as Nation

expect(nation).toBeDefined()
expectTypeOf(nation).not.toEqualTypeOf<Error>()
Expand Down
4 changes: 2 additions & 2 deletions tests/dynmap/residents.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { Resident } from '../../src/types'

import { Nova } from '../../src/main'

describe('[Dynmap/Nova] Residents', () => {
describe.skip('[Dynmap/Nova] Residents', () => {
it('can get all residents', async () => {
const residents = await Nova.Residents.all()
assertType<Resident[]>(residents)
})

it('can get single resident', async () => {
const resident = await Nova.Residents.get('3meraldk')
const resident = await Nova.Residents.get('3meraldk') as Resident

expect(resident).toBeDefined()
expectTypeOf(resident).not.toEqualTypeOf<Error>()
Expand Down
4 changes: 2 additions & 2 deletions tests/dynmap/towns.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import {
import { Town } from '../../src/types'
import { Nova } from '../../src/main'

describe('[Dynmap/Nova] Towns', () => {
describe.skip('[Dynmap/Nova] Towns', () => {
it('can get all towns', async () => {
const towns = await Nova.Towns.all()
assertType<Town[]>(towns)
})

it('can get single town', async () => {
const town = await Nova.Towns.get('kraftier')
const town = await Nova.Towns.get('kraftier') as Town

expect(town).toBeTruthy()
expect(town).toBeDefined()
Expand Down
2 changes: 1 addition & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default defineConfig({
pool: 'vmForks',
poolOptions: {
vmForks: {
memoryLimit: 0.1, // 10% of sys mem
memoryLimit: 0.15, // 15% of sys mem
minForks: 2, // always use 2 threads
maxForks: 6 // 6 threads is enough
}
Expand Down

0 comments on commit 7eb4695

Please sign in to comment.