Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests ci meteor3 #189

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
meteor-version: ['2.5.6', '2.6.1', '?'] # ? - latest meteor version
meteor-version: ['2.5.6', '2.6.1', '3.0-beta.6'] # ? - latest meteor version
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
3 changes: 0 additions & 3 deletions .versions
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ modern-browsers@0.1.7
modules@0.17.0
modules-runtime@0.12.0
mongo-id@1.0.8
practicalmeteor:chai@1.9.2_3
practicalmeteor:mocha-core@1.0.1
practicalmeteor:sinon@1.10.3_2
promise@0.12.0
random@1.2.0
react-fast-refresh@0.2.0
Expand Down
9 changes: 4 additions & 5 deletions package.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ Package.describe({
const npmDependencies = {
'js-yaml': '4.1.0',
'strip-json-comments': '3.1.1',
'@babel/runtime': '7.20.7',
};

Npm.depends(npmDependencies);
Package.registerBuildPlugin({
name: 'universe:i18n',
use: ['caching-compiler@1.2.2', 'tracker', 'typescript'],
use: ['caching-compiler@1.2.2 || 2.0.0-beta300.6 || 2.0.0', 'tracker', 'typescript'],
sources: [
'source/common.ts',
'source/compiler.ts',
Expand All @@ -26,7 +27,7 @@ Package.registerBuildPlugin({
});

Package.onUse(function (api) {
api.versionsFrom('2.3');
api.versionsFrom(['2.3', '3.0-beta.6']);
api.use([
'check',
'ddp',
Expand All @@ -46,9 +47,7 @@ Package.onUse(function (api) {

Package.onTest(function (api) {
api.use([
'meteortesting:mocha',
'practicalmeteor:chai',
'practicalmeteor:sinon',
'meteortesting:mocha@3.0.3-alpha300.11',
'typescript',
'universe:i18n',
]);
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
},
"devDependencies": {
"@types/chai": "4.3.0",
"@types/fibers": "3.1.1",
"@types/js-yaml": "4.0.5",
"@types/meteor": "1.4.76",
"@types/mocha": "9.1.0",
Expand All @@ -18,7 +17,10 @@
"@types/sinon": "10.0.11",
"@types/sinon-chai": "3.2.8",
"@types/strip-json-comments": "3.0.0",
"chai": "^4.3.10",
"eslint-config-vazco": "7.0.0",
"sinon": "^17.0.1",
"sinon-chai": "^3.7.0",
"typescript": "4.8.4"
}
}
2 changes: 2 additions & 0 deletions tests/client.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { i18n } from '../source/client';

import chai from 'chai';

const expect = chai.expect;

describe('universe-i18n - client', () => {
Expand Down
6 changes: 4 additions & 2 deletions tests/common.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/// <reference path="meteor_practicalmeteor_sinon.d.ts"/>

import { sinon } from 'meteor/practicalmeteor:sinon';
import chai from 'chai';
import sinon from 'sinon';
import sinonChai from "sinon-chai";
chai.use(sinonChai);

import { i18n } from '../source/common';

Expand Down
1 change: 1 addition & 0 deletions tests/server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { i18n } from '../source/server';
import chai from 'chai';

const expect = chai.expect;

Expand Down
Loading